Add tests to traverseRegexMatchesInRange

This commit is contained in:
Corey Johnson
2012-03-29 11:01:26 -07:00
parent 51c4e012df
commit d739ebddbc
2 changed files with 36 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ class Buffer
if matchEndIndex > endIndex
regex.lastIndex = 0
if matchStartIndex < endIndex and match = regex.exec(text[matchStartIndex..endIndex])
if matchStartIndex < endIndex and match = regex.exec(text[matchStartIndex...endIndex])
matchLength = match[0].length
matchEndIndex = matchStartIndex + matchLength
else