add case insensitivity

This commit is contained in:
Taah 2022-04-08 00:24:46 -07:00
parent 10e63f5e86
commit 38e79fd917

View File

@ -76,7 +76,7 @@ public class CommandListener extends PlexListener
{ {
if (blockedCommand.getRegex() != null) if (blockedCommand.getRegex() != null)
{ {
Pattern pattern = Pattern.compile(blockedCommand.getRegex()); Pattern pattern = Pattern.compile(blockedCommand.getRegex(), Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(event.getMessage().replace("/", "")); Matcher matcher = pattern.matcher(event.getMessage().replace("/", ""));
if (matcher.find()) if (matcher.find())
{ {