File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ function stripCData(s: string): string {
7171export function convertSearchReplaceToUnifiedDiff ( content : string , filePath ?: string ) : string {
7272 // Backend-compatible regex: captures :start_line: and :end_line:, optional '-------', and SEARCH/REPLACE bodies
7373 const blockRegex =
74- / (?: ^ | \n ) (?< ! \\ ) < < < < < < < S E A R C H > ? \s * \n ( (?: \ :s t a r t _ l i n e : \s * ( \d + ) \s * \n ) ) ? ( (?: \ :e n d _ l i n e : \s * ( \d + ) \s * \n ) ) ? ( (?< ! \\ ) - - - - - - - \s * \n ) ? ( [ \s \S ] * ?) (?: \n ) ? (?: (?< = \n ) (?< ! \\ ) = = = = = = = \s * \n ) ( [ \s \S ] * ?) (?: \n ) ? (?: (?< = \n ) (?< ! \\ ) > > > > > > > R E P L A C E ) (? = \n | $ ) / g
74+ / (?: ^ | \n ) (?< ! \\ ) < < < < < < < S E A R C H > ? \s * \n ( (?: : s t a r t _ l i n e : \s * ( \d + ) \s * \n ) ) ? ( (?: : e n d _ l i n e : \s * ( \d + ) \s * \n ) ) ? ( (?< ! \\ ) - - - - - - - \s * \n ) ? ( [ \s \S ] * ?) (?: \n ) ? (?: (?< = \n ) (?< ! \\ ) = = = = = = = \s * \n ) ( [ \s \S ] * ?) (?: \n ) ? (?: (?< = \n ) (?< ! \\ ) > > > > > > > R E P L A C E ) (? = \n | $ ) / g
7575
7676 const fileName = filePath || "file"
7777 let hasBlocks = false
You can’t perform that action at this time.
0 commit comments