You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -456,7 +459,7 @@ Each file requires its own path, start_line, and diff elements.
456
459
457
460
/* Regex parts:
458
461
1. (?:^|\n) Ensures the first marker starts at the beginning of the file or right after a newline.
459
-
2. (?<!\\)<<<<<<< SEARCH\s*\n Matches the line "<<<<<<< SEARCH" (ignoring any trailing spaces) – the negative lookbehind makes sure it isn't escaped.
462
+
2. (?<!\\)<<<<<<< SEARCH>?\s*\n Matches the line "<<<<<<< SEARCH" with optional '>' (ignoring any trailing spaces) – the negative lookbehind makes sure it isn't escaped.
460
463
3. ((?:\:start_line:\s*(\d+)\s*\n))? Optionally matches a ":start_line:" line. The outer capturing group is group 1 and the inner (\d+) is group 2.
461
464
4. ((?:\:end_line:\s*(\d+)\s*\n))? Optionally matches a ":end_line:" line. Group 3 is the whole match and group 4 is the digits.
462
465
5. ((?<!\\)-------\s*\n)? Optionally matches the "-------" marker line (group 5).
@@ -467,7 +470,7 @@ Each file requires its own path, start_line, and diff elements.
0 commit comments