Commit 1a485729 authored by csillag's avatar csillag

updated dom-text-matcher to b6936618 (master branch), with bugfix

parent 5dcbe387
......@@ -70,7 +70,10 @@ class window.DomTextMatcher
# Get a starting position for the prefix search
expectedPrefixStart = if expectedStart?
expectedStart - prefix.length
i = expectedStart - prefix.length
if i < 0
0
else i
else
Math.floor(len / 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment