We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a9da1d commit 5e487fdCopy full SHA for 5e487fd
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/support/StringMatcherTests.java
@@ -45,7 +45,8 @@ 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(s -> StringMatcherTests.hasHighSurrogate(s) || s.contains("\\"),
+ final String prefix = randomValueOtherThanMany(
49
+ s -> StringMatcherTests.hasHighSurrogate(s) || s.contains("\\") || s.startsWith("/"),
50
() -> randomRealisticUnicodeOfLengthBetween(3, 5));
51
final StringMatcher matcher = StringMatcher.of(prefix + "*");
52
for (int i = 0; i < 10; i++) {
0 commit comments