Fix regex matcher. (#1852)
This commit is contained in:
@@ -116,9 +116,9 @@ open internal class SupplementaryRangeSet(charClass: AbstractCharClass, val igno
|
|||||||
var index = startIndex
|
var index = startIndex
|
||||||
|
|
||||||
val high = testString[index++]
|
val high = testString[index++]
|
||||||
val result = next.matches(index, testString, matchResult)
|
if (contains(high)) {
|
||||||
if (contains(high) && result >= 0) {
|
val result = next.matches(index, testString, matchResult)
|
||||||
return result
|
if (result >= 0) return result
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index < rightBound) {
|
if (index < rightBound) {
|
||||||
|
|||||||
Reference in New Issue
Block a user