Fixed case sensitive matcher
This commit is contained in:
parent
e21850f571
commit
aaead18263
@ -54,7 +54,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
@ -351,9 +350,9 @@ public class RepositoryUtils {
|
|||||||
} else {
|
} else {
|
||||||
regex = (regexValue.startsWith(".*") ? "" : ".*") + regexValue + (regexValue.endsWith(".*") ? "" : ".*");
|
regex = (regexValue.startsWith(".*") ? "" : ".*") + regexValue + (regexValue.endsWith(".*") ? "" : ".*");
|
||||||
}
|
}
|
||||||
return Pattern.compile(regex, Pattern.CASE_INSENSITIVE);
|
return Pattern.compile(regex);
|
||||||
} else {
|
} else {
|
||||||
return Pattern.compile(prefix + Pattern.quote(value) + suffix, Pattern.CASE_INSENSITIVE);
|
return Pattern.compile(prefix + Pattern.quote(value) + suffix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user