kpdecker / jsdiff

A javascript text differencing implementation.
BSD 3-Clause "New" or "Revised" License
7.92k stars 496 forks source link

Check applyPatch handling of case where both old and new file have no trailing newline #534

Closed ExplodingCabbage closed 1 month ago

ExplodingCabbage commented 1 month ago

I didn't think about this when writing https://github.com/kpdecker/jsdiff/pull/533 and suspect I broke something. Needs fixing before release.

ExplodingCabbage commented 1 month ago

(I was prompted to think about this scenario because https://github.com/kpdecker/jsdiff/issues/531 was coincidentally opened recently.)