Clarify regex

This commit is contained in:
filoghost 2020-06-06 10:10:34 +02:00
parent 73c338ea88
commit 1bfa684658

View File

@ -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) {