mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-22 13:14:12 +00:00
[AB-xxx] making regex checks ignore case
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user