mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27:37 +00:00
add case insensitivity
This commit is contained in:
parent
10e63f5e86
commit
38e79fd917
@ -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 New Issue
Block a user