mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Add tests to traverseRegexMatchesInRange
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user