mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Soften server checking regex - also towards #143
This commit is contained in:
parent
0be7300677
commit
38d1c9974b
@ -45,7 +45,7 @@ public class ArgumentChecker {
|
||||
}
|
||||
|
||||
public static boolean checkServer(String s) {
|
||||
return s.toLowerCase().startsWith("r=") || (s.startsWith("(") && s.endsWith(")") && s.contains("|")) || Patterns.NON_ALPHA_NUMERIC.matcher(s).find();
|
||||
return !s.toLowerCase().startsWith("r=") && Patterns.NON_ALPHA_NUMERIC_SPACE.matcher(s).find();
|
||||
}
|
||||
|
||||
public static boolean checkNode(String s) {
|
||||
|
Loading…
Reference in New Issue
Block a user