Skip to content

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.

1 participant