ICU-20544 Regex, Fix assertion failure in positive look-behind

This commit is contained in:
Andy Heninger 2019-04-12 13:34:27 -07:00
parent cab01e522e
commit bdb1806580
2 changed files with 2 additions and 2 deletions

View File

@ -2285,7 +2285,7 @@ void RegexCompile::handleCloseParen() {
error(U_REGEX_LOOK_BEHIND_LIMIT);
break;
}
if (minML == INT32_MAX && maxML == 0) {
if (minML == INT32_MAX) {
// This condition happens when no match is possible, such as with a
// [set] expression containing no elements.
// In principle, the generated code to evaluate the expression could be deleted,

View File

@ -1444,11 +1444,11 @@
"(?<![ⰿ&&m]c)" "<0></0>abc" # note: first 'ⰿ' is \u2c3f, hence empty set.
"(?<![^\u0000-\U0010ffff]c)" "<0></0>abc"
"(?<=[^[^]]†)" "abc" # Problem also exists w positive look-behind
# Random debugging, Temporary
#
#
# Regexps from http://www.regexlib.com
#