@@ -13,7 +13,7 @@ const BUFFER_LINES = 40 // Number of extra context lines to show before and afte
1313 *
1414 * If the LLM forgets the newline after the separator, the run-on line
1515 * (e.g. `-------import { ... }`) ends up as the first line of the
16- * captured search content. The outer regex doesn't reject this — it
16+ * captured search content. The outer regex doesn't reject this, it
1717 * just falls through, and the file-content match fails with a
1818 * confusing "63% similar" error. By detecting the malformed prefix
1919 * here we can return an actionable error instead.
@@ -39,7 +39,7 @@ function detectMalformedSeparator(searchContent: string): string | null {
3939 }
4040 const tail = match [ 1 ] . trim ( )
4141 // Allow lines that start with a literal `-` continuation (e.g.
42- // markdown bullets that begin with extra dashes) — they wouldn't
42+ // markdown bullets that begin with extra dashes), they wouldn't
4343 // look like the separator-then-code shape that confuses callers.
4444 if ( tail === "" || / ^ - + $ / . test ( tail ) ) {
4545 return null
@@ -302,7 +302,7 @@ export class MultiSearchReplaceDiffStrategy implements DiffStrategy {
302302 Ensures the first marker starts at the beginning of the file or right after a newline.
303303
304304 2. (?<!\\)<<<<<<< SEARCH\s*\n
305- Matches the line "<<<<<<< SEARCH" (ignoring any trailing spaces) – the negative lookbehind makes sure it isn't escaped.
305+ Matches the line "<<<<<<< SEARCH" (ignoring any trailing spaces), the negative lookbehind makes sure it isn't escaped.
306306
307307 3. ((?:\:start_line:\s*(\d+)\s*\n))?
308308 Optionally matches a ":start_line:" line. The outer capturing group is group 1 and the inner (\d+) is group 2.
0 commit comments