Open ipip2005 opened 4 years ago
Might be related to https://github.com/benjamine/jsondiffpatch/issues/60
Damn, same issue. 🙁
Swapping items 1 and 3 in an array yields wrong diff result while swapping items 1 and 4 yields a correct one...
I can replicate it in the demo page:
Wrong swapping of 1 and 3
Correct swapping of 1 and 4
Any updates?
In case of swapping array elements while also changing the elements that are being swapped, unpatching the diff doesn't give me the left side correctly.
The left side data
The right side data
Here is my configuration:
I calculate the
diff
, howeverunpatch
the diff gave me wrong result