lagden / highlight

Make the words shine
https://www.npmjs.com/package/lagden-highlight
MIT License
1 stars 0 forks source link

Fix output with lots of words to match #2

Closed wyze closed 7 years ago

wyze commented 7 years ago

Here is what fixed it for me. I think the problem lies in the regex of building the key names again. So it will stop with spade1 even though it should have been spade10 and that is why in my output I would see stuff like the0.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 820d6022e0b7e35fd9280231bd477fa253c1842e on wyze:fix-lots-of-words into 625597edf9be6ebf7af0069bcd0e73ef08cf602d on lagden:master.

lagden commented 7 years ago

@wyze tks for your PR but I did an aproach more simple...

Update to version 3... Sample using your data: https://runkit.com/embed/scpbp3cirujq