Edqs - sql like queries case insensitive

This commit is contained in:
Volodymyr Babak 2025-06-17 15:49:01 +03:00
parent 3288ec257f
commit 969b0fec00

View File

@ -339,9 +339,9 @@ public class RepositoryUtils {
} else if ("$".equals(suffix)) {
regexValue = (regexValue.startsWith(".*") ? "" : ".*") + regexValue + "$";
}
return Pattern.compile(regexValue);
return Pattern.compile(regexValue, Pattern.CASE_INSENSITIVE);
} else {
return Pattern.compile(prefix + Pattern.quote(value) + suffix);
return Pattern.compile(prefix + Pattern.quote(value) + suffix, Pattern.CASE_INSENSITIVE);
}
}