mirror of
https://github.com/plexusorg/Plex.git
synced 2025-02-14 12:58:17 +00:00
add case insensitivity
This commit is contained in:
parent
10e63f5e86
commit
38e79fd917
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue