mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 09:37: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)
|
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 New Issue
Block a user