kpdecker / jsdiff

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

Add test showing patch from bug #177 is handled correctly now #447

Closed ExplodingCabbage closed 7 months ago

ExplodingCabbage commented 7 months ago

Over at #177, @dolftax reported a particular example of a patch that applyPatch handled incorrectly. However, this test seems to indicate that we no longer apply at least that particular patch incorrectly. Possibly the fix to https://github.com/kpdecker/jsdiff/issues/189 also fixed #177?

Resolves #177.