fix: diff format in k2 v2 (#2524)

This commit is contained in:
yetone
2025-07-24 14:31:03 +08:00
committed by GitHub
parent 430cac8d91
commit f199625ee4

View File

@@ -9,7 +9,7 @@ local function split_lines(text)
end
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 pos = 1