mirror of
https://github.com/plexusorg/Plex.git
synced 2025-02-15 05:18:06 +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)
|
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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue