Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Fix regex matcher. (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
olonho authored and homuroll committed Aug 9, 2018
1 parent f75f07a commit 4bb30b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ open internal class SupplementaryRangeSet(charClass: AbstractCharClass, val igno
var index = startIndex

val high = testString[index++]
val result = next.matches(index, testString, matchResult)
if (contains(high) && result >= 0) {
return result
if (contains(high)) {
val result = next.matches(index, testString, matchResult)
if (result >= 0) return result
}

if (index < rightBound) {
Expand Down

0 comments on commit 4bb30b6

Please sign in to comment.