fix: diff format in k2 v2 (#2524)
This commit is contained in:
@@ -9,7 +9,7 @@ local function split_lines(text)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function diff2search_replace(diff_text)
|
local function diff2search_replace(diff_text)
|
||||||
if not diff_text:match("^@@") then return diff_text end
|
if not diff_text:match("@@%s*%-%d+,%d+%s%+") then return diff_text end
|
||||||
|
|
||||||
local blocks = {}
|
local blocks = {}
|
||||||
local pos = 1
|
local pos = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user