-
Notifications
You must be signed in to change notification settings - Fork 487
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
.applyPatches() returns false when an operator-less unchanged line mismatches #248
Comments
Found that this is because the default behavior for mismatching unchanged line is different between jsdiff and GNU patch:
Should we do the same? |
Unfortunately the example patch is no longer publicly available on S3.
This doesn't sound right;
So I don't think there's really a bug here? We're behaving along the same lines as I do think we should document the ways that our fuzzy matching differs from GNU |
Ugh, it looks like I guess I don't want to add docs for |
I've noted on #468 that docs are needed, so I'm gonna close this issue as now being kinda contained within that one. |
I cooked a repro: https://github.com/saschanaz/jsdiff-test
The patch: https://s3.amazonaws.com/snyk-rules-pre-repository/snapshots/master/patches/npm/qs/20140806-1/qs_20140806-1_0_0_snyk.patch
The target: https://unpkg.com/qs@0.6.6/index.js
The
patched
callback from.applyPatches()
somehow givesfalse
.GNU patch can apply it without an issue.
The text was updated successfully, but these errors were encountered: