-
Notifications
You must be signed in to change notification settings - Fork 510
Unexpected diffLines result on a basic example #324
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
Comments
Interesting. #254 was about the same behaviour in the context of jsdiff's patch-generation functions, and I closed it saying the behaviour is correct. I think I agree with myself with regards to patches. When it comes to change objects as returned from How do you reckon things ought to behave, here? It would be weird if your first example returned literally the exact same result as your second one since then it'd be adding in an extra |
The line with a "b" does not change : the newline character is a separator and should be treated at such when using |
Thinking about it, I figure it'd make sense to add an |
yields:
I need to add a trailing \n to get the expected, simpler result.
The text was updated successfully, but these errors were encountered: