From 38e79fd917216211865377d856504e760f19fe3a Mon Sep 17 00:00:00 2001 From: Taah Date: Fri, 8 Apr 2022 00:24:46 -0700 Subject: [PATCH] add case insensitivity --- src/main/java/dev/plex/listener/impl/CommandListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/plex/listener/impl/CommandListener.java b/src/main/java/dev/plex/listener/impl/CommandListener.java index 0897815..3d1d4b0 100644 --- a/src/main/java/dev/plex/listener/impl/CommandListener.java +++ b/src/main/java/dev/plex/listener/impl/CommandListener.java @@ -76,7 +76,7 @@ public class CommandListener extends PlexListener { 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("/", "")); if (matcher.find()) {