Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applying a replace patch is inconsistent with path="" and path="/" #319

Open
shashank1010 opened this issue Nov 22, 2023 · 0 comments
Open

Comments

@shashank1010
Copy link

shashank1010 commented Nov 22, 2023

https://stackblitz.com/edit/diff-apply-patch-replace-not-working

When performing a replace operation operation path with "/" and "", there are different inconsistent behaviours.
However, it causes other issues.

I've demonstrated examples for two cases in which we can reliably reproduce replace operation issues

@shashank1010 shashank1010 changed the title When a patch path is "", apply patch doesn't mutate the document applying a replace patch is inconsistent with path="" and path="/" Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant