We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2561b94 commit 52b7b7aCopy full SHA for 52b7b7a
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/support/StringMatcherTests.java
@@ -45,7 +45,7 @@ public void testSingleQuestionMark() throws Exception {
45
46
public void testUnicodeWildcard() throws Exception {
47
// Lucene automatons don't work correctly on strings with high surrogates
48
- final String prefix = randomValueOtherThanMany(StringMatcherTests::hasHighSurrogate,
+ final String prefix = randomValueOtherThanMany(s -> StringMatcherTests.hasHighSurrogate(s) || s.contains("\\"),
49
() -> randomRealisticUnicodeOfLengthBetween(3, 5));
50
final StringMatcher matcher = StringMatcher.of(prefix + "*");
51
for (int i = 0; i < 10; i++) {
0 commit comments