Fix regex matcher. (#1852)

This commit is contained in:
Nikolay Igotti
2018-08-08 15:36:28 +03:00
committed by GitHub
parent 2045951d49
commit 09427e3a70
@@ -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) {