fix(coding-agent): normalize fuzzy edit matching and run touched tests closes #2044

This commit is contained in:
Mario Zechner
2026-03-15 19:08:24 +01:00
parent 1ae0833a72
commit 700bcf3455
3 changed files with 32 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ export function restoreLineEndings(text: string, ending: "\r\n" | "\n"): string
export function normalizeForFuzzyMatch(text: string): string {
return (
text
.normalize("NFKC")
// Strip trailing whitespace per line
.split("\n")
.map((line) => line.trimEnd())