Fix issues related to Node comparisons

This commit is contained in:
Luck 2016-10-02 15:44:46 +01:00
parent 3442372281
commit 1da1df156e
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -38,8 +38,8 @@ import java.util.stream.IntStream;
* An immutable permission node * An immutable permission node
*/ */
@SuppressWarnings({"WeakerAccess", "unused"}) @SuppressWarnings({"WeakerAccess", "unused"})
@ToString @ToString(exclude = {"isPrefix", "isSuffix", "isMeta"})
@EqualsAndHashCode @EqualsAndHashCode(exclude = {"isPrefix", "isSuffix", "isMeta"})
public class Node implements me.lucko.luckperms.api.Node { public class Node implements me.lucko.luckperms.api.Node {
private static final Pattern PREFIX_PATTERN = Pattern.compile("(?i)prefix\\.-?\\d+\\..*"); private static final Pattern PREFIX_PATTERN = Pattern.compile("(?i)prefix\\.-?\\d+\\..*");
private static final Pattern SUFFIX_PATTERN = Pattern.compile("(?i)suffix\\.-?\\d+\\..*"); private static final Pattern SUFFIX_PATTERN = Pattern.compile("(?i)suffix\\.-?\\d+\\..*");