sergi / go-diff

Diff, match and patch text in Go
MIT License
1.81k stars 207 forks source link

Fix: DiffLinesToChars hash error. #125

Open vill-jiang opened 3 years ago

vill-jiang commented 3 years ago
oldS := `
asd
cvf
`
newS := `
asd
cvf
`
chars1, chars2, lineSlice := dmp.DiffLinesToChars(oldS, newS)

DiffLinesToChars do not hash same line to same value that including in chars1 and chars2.

schrej commented 2 years ago

fixes #123