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

At the end of the compared text, when there is a punctuation mark, something goes wrong #515

Closed
anniek-bisschop opened this issue Apr 4, 2024 · 1 comment

Comments

@anniek-bisschop
Copy link

You can also see this happening in the demo tool. When you hit the spacebar after the punctuation mark, it will be corrected.

test

After adding space:
After space

@ExplodingCabbage
Copy link
Collaborator

I can't repro this. If I paste This is a test and This is a test? into the text areas, with no trailing space, then I get exactly the correct result:

image

To confirm - you're trying this at http://incaseofstairs.com/jsdiff/? Any chance you're using an old version that's in your browser cache, or that a plugin is interfering somehow? Would be interested to hear if using a different browser magically fixes it. (I don't have anything like a complete theory of how exactly either issue would cause this outcome, though.)

I'm gonna close this as no-repro for now but will reopen and take another look if I get more info.

@ExplodingCabbage ExplodingCabbage closed this as not planned Won't fix, can't repro, duplicate, stale Apr 29, 2024
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

2 participants