Skip to content

Commit d85e306

Browse files
committed
Address testRegexAcceleration failure
1 parent cf0a99d commit d85e306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,11 @@ public void testRegexAcceleration() throws IOException, ParseException {
534534
{ "(maynotexist)?foobar", "+eoo +ooa +oaa +aaq +aq_ +q__" },
535535
{ ".*/etc/passw.*", "+\\/es +esc +sc\\/ +c\\/o +\\/oa +oas +ass +ssw" },
536536
{ ".*etc/passwd", " +esc +sc\\/ +c\\/o +\\/oa +oas +ass +ssw +swc +wc_ +c__" },
537-
{ "(http|ftp)://foo.*", "+((+gss +sso) eso) +(+\\/\\/\\/ +\\/\\/e +\\/eo +eoo)" },
537+
{ "(http|ftp)://foo.*", "+\\/\\/\\/ +\\/\\/e +\\/eo +eoo +((+gss +sso) eso)" },
538538
{
539539
"[Pp][Oo][Ww][Ee][Rr][Ss][Hh][Ee][Ll][Ll]\\.[Ee][Xx][Ee]",
540540
"+_oo +oow +owe +weq +eqs +qsg +sge +gek +ekk +kk\\/ +k\\/e +\\/ew +ewe +we_ +e__" },
541-
{ "foo<1-100>bar", "+(+_eo +eoo) +(+aaq +aq_ +q__)" },
541+
{ "foo<1-100>bar", "+_eo +eoo +aaq +aq_ +q__" },
542542
{ "(aaa.+&.+bbb)cat", "+cas +as_ +s__" },
543543
{ ".a", "a__" } };
544544
for (String[] test : acceleratedTests) {

0 commit comments

Comments
 (0)