[AB-xxx] making regex checks ignore case

This commit is contained in:
Sheldan
2021-05-23 23:17:29 +02:00
parent 1fbd494590
commit dc2479889a
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ public class ProfanityServiceBean implements ProfanityService {
}
private void loadProfanityRegex(ProfanityRegex profanityRegex, Long serverId) {
Pattern pattern = Pattern.compile(profanityRegex.getRegex());
Pattern pattern = Pattern.compile(profanityRegex.getRegex(), Pattern.CASE_INSENSITIVE);
List<PatternReplacement> newPatterns = new ArrayList<>();
PatternReplacement patternReplacement = PatternReplacement
.builder()