Make pattern matching case insensitive.

This commit is contained in:
esaunders 2016-12-06 10:20:14 -05:00
parent 80ae7e8250
commit 7bcb31495e

View File

@ -186,7 +186,7 @@ final class RegexQuery implements KeywordSearchQuery {
for (Object value : fieldValues) {
String content = value.toString();
Matcher hitMatcher = Pattern.compile(keywordString).matcher(content);
Matcher hitMatcher = Pattern.compile(keywordString, Pattern.CASE_INSENSITIVE).matcher(content);
while (hitMatcher.find()) {
String snippet = "";