Skip to content

Commit e3c24b2

Browse files
committed
fix WildcardFieldMapperTests to include
1 parent 435f0c2 commit e3c24b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,8 @@ protected String convertToRandomRegex(String randomValue) {
10171017
}
10181018

10191019
// Assert our randomly generated regex actually matches the provided raw input.
1020-
RegExp regex = new RegExp(result.toString());
1020+
int includeDeprecatedComplement = RegExp.ALL | RegExp.DEPRECATED_COMPLEMENT;
1021+
RegExp regex = new RegExp(result.toString(), includeDeprecatedComplement);
10211022
Automaton automaton = Operations.determinize(regex.toAutomaton(), Operations.DEFAULT_DETERMINIZE_WORK_LIMIT);
10221023
ByteRunAutomaton bytesMatcher = new ByteRunAutomaton(automaton);
10231024
BytesRef br = new BytesRef(randomValue);

0 commit comments

Comments
 (0)