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

I found a bug in JavaScript implementation #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

atsmin
Copy link

@atsmin atsmin commented Jun 23, 2016

Hi, I found a little bug that if before text contains a word like "constructor" an error occurs and I fixed it. I'm very impressed by your diff library and it would be great if you check this. Thanks.

I found a bug that if before text contains a word like "constructor" an error occurs here and fixed it.
@atsmin atsmin changed the title fix bug I found a bug in JavaScript implementation Jun 23, 2016
wmfgerrit pushed a commit to wikimedia/mediawiki-services-parsoid that referenced this pull request May 24, 2018
Fixes the roundtripping on http://localhost:8000/_rt/zhwiki/%E5%A4%A9%E8%8A%B1%E6%B9%96%E6%B0%B4%E5%BA%AB

Added a test to catch regressions.  Sadly, simplediff is prone to this
same type of bug, when "constructor" is split as a word, its
`oldIndexMap` gets confused.  This is tracked as,
paulgb/simplediff#19

Bug: T195227
Change-Id: I7e9f5699a6f73e5d4b3cd88bca5ddca0dff279df
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

Successfully merging this pull request may close these issues.

None yet

1 participant