8281560: Matcher.hitEnd returns unexpected results in presence of CANON_EQ flag.

Reviewed-by: rriggs, lancea
This commit is contained in:
Ian Graves 2022-03-08 16:32:18 +00:00
parent 2549e55038
commit 3fc009be8a
2 changed files with 27 additions and 2 deletions

View file

@ -4005,8 +4005,9 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
}
if (j < matcher.to)
return false;
} else {
matcher.hitEnd = true;
}
matcher.hitEnd = true;
return false;
}