mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-26 03:55:40 +01:00
Clarify regex
This commit is contained in:
parent
73c338ea88
commit
1bfa684658
@ -41,7 +41,7 @@ public class CommandSerializer {
|
||||
}
|
||||
|
||||
private static Pattern commandPattern(String regex) {
|
||||
return Pattern.compile("^(?i)" + regex); // Case insensitive and only at the beginning
|
||||
return Pattern.compile("^" + regex, Pattern.CASE_INSENSITIVE); // Case insensitive and only at the beginning
|
||||
}
|
||||
|
||||
public static IconCommand matchCommand(String input) {
|
||||
|
Loading…
Reference in New Issue
Block a user