Skip to content

Commit

Permalink
Added support for _ in the class filters
Browse files Browse the repository at this point in the history
  • Loading branch information
jediminer543 committed Dec 21, 2021
1 parent f5359cb commit 23d44a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jmt/mcmt/config/SerDesConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public int getPriority() {
}

private static final class ClassListValidator implements Predicate<Object> {
String validatorRegex = "^[a-z]+(\\.[a-z0-9]+)*((\\.[A-Z][A-Za-z0-9]+($[A-Za-z0-9]+)*)|\\.\\*|\\.\\*\\*)$";
String validatorRegex = "^[a-z\\_]+(\\.[a-z0-9\\_]+)*((\\.[A-Z][A-Za-z0-9\\_]+($[A-Za-z0-9\\_]+)*)|\\.\\*|\\.\\*\\*)$";
@Override
public boolean test(Object t) {
if (t == null) {
Expand All @@ -172,7 +172,7 @@ public boolean test(Object t) {
}

private static final class ClassValidator implements Predicate<Object> {
String validatorRegex = "^[a-z]+(\\.[a-z0-9]+)*((\\.[A-Za-z0-9]+(\\$[A-Za-z0-9]+)*))?$";
String validatorRegex = "^[a-z\\_]+(\\.[a-z0-9\\_]+)*((\\.[A-Za-z0-9\\_]+(\\$[A-Za-z0-9\\_]+)*))?$";
@Override
public boolean test(Object s) {
if ((s instanceof String && ((String)s).matches(validatorRegex))) {
Expand Down

0 comments on commit 23d44a0

Please sign in to comment.