ICU-20544 Regex, Fix assertion failure in positive look-behind
This commit is contained in:
parent
cab01e522e
commit
bdb1806580
@ -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,
|
||||
|
2
icu4c/source/test/testdata/regextst.txt
vendored
2
icu4c/source/test/testdata/regextst.txt
vendored
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user