Open flippyang opened 5 years ago
Take a look at https://benjamine.github.io/jsondiffpatch/demo/ I think u are looking at the patch difference. For reverse applying it to get back the previous version
@flippyang do you still have an issue?
I don't have this issue.
If you want to save without text diff. You need to path textDiff option to jsondiffpatch
const diffPatcher = require('jsondiffpatch').create({ objectHash, textDiff:{minLength:1000} });
I have this document where i saved the URL and sources in array of object. Here is an example of how my json look like:
This is what happened in diff when I try to edit and save the url from https://websitebuilders.com/how-to/web-at-a-glance/url-examples/ to _https://websitebuilders.com/how-to/web-at-a-glance/url-examples/#Example_1httpswebsitebuilderscom_:
If you notice, the url are completely butchered. It seems like it combines both url (original and updated) into one encoded url. Somehow it happen to some of the url only especially the long one. Can you check please?