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) {
|
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) {
|
public static boolean checkNode(String s) {
|
||||||
|
Loading…
Reference in New Issue
Block a user