kpdecker / jsdiff

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

Fix order of arguments to .equals and comparator #467

Closed ExplodingCabbage closed 6 months ago

ExplodingCabbage commented 6 months ago

Intuitively you would expect that values from the old text/array would get passed as the left argument and values from the new would get passed as the right argument, but this was not the case. This PR makes it so.

Resolves https://github.com/kpdecker/jsdiff/issues/286.