Make Regex case insensitive

This commit is contained in:
Teriuihi 2021-07-28 21:26:21 +02:00
parent 9674503170
commit 70b5f980f0

View File

@ -17,7 +17,7 @@ public class ChatFilter {
this.name = name; this.name = name;
this.filterType = FilterType.getType(type); this.filterType = FilterType.getType(type);
this.regex = regex; this.regex = regex;
this.pattern = Pattern.compile(getRegex()); this.pattern = Pattern.compile(getRegex(), Pattern.CASE_INSENSITIVE);
this.replacement = replacement; this.replacement = replacement;
this.exclusions = exclusions; this.exclusions = exclusions;
} }