-
Notifications
You must be signed in to change notification settings - Fork 510
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
Bug with newlines in getStructuredPatch with { newlineIsToken: true } #235
Comments
The same for createPath with newlineIsToken: true
And the same bug is for diffLines with newlineIsToken: true:
|
Not sure what change fixed it or when it happened, but the
Can't find a bug in the patch methods either:
Am gonna assume whatever was wrong here is fixed and close. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
newlineIsToken is not documented for getStructuredPatch, so may be we need throw some exception for such case.
oldFile:
newFile:
I.e. added c\nd\n\n
The result is:
The text was updated successfully, but these errors were encountered: