kpdecker / jsdiff

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

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

Closed ExplodingCabbage closed 3 months ago

ExplodingCabbage commented 3 months 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 3 months ago

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