From 38d1c9974b2d531796d834851a88d257acb79181 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 22 Jan 2017 16:36:06 +0000 Subject: [PATCH] Soften server checking regex - also towards #143 --- .../java/me/lucko/luckperms/common/utils/ArgumentChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/utils/ArgumentChecker.java b/common/src/main/java/me/lucko/luckperms/common/utils/ArgumentChecker.java index 130ab40a..7df05334 100644 --- a/common/src/main/java/me/lucko/luckperms/common/utils/ArgumentChecker.java +++ b/common/src/main/java/me/lucko/luckperms/common/utils/ArgumentChecker.java @@ -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) {