fix(hashline): restore v3.11.2 legacy hash computation for backward compatibility

🤖 Generated with [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-openagent)
This commit is contained in:
YeonGyu-Kim
2026-03-16 13:52:26 +09:00
parent 8c4fa47e5e
commit 1339ecdd13
3 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export function computeLineHash(lineNumber: number, content: string): string {
}
export function computeLegacyLineHash(lineNumber: number, content: string): string {
return computeNormalizedLineHash(lineNumber, content.replace(/\r/g, "").trim())
return computeNormalizedLineHash(lineNumber, content.replace(/\r/g, "").replace(/\s+/g, ""))
}
export function formatHashLine(lineNumber: number, content: string): string {