woj-tek commented on code in PR #1406:
URL: https://github.com/apache/james-project/pull/1406#discussion_r1084321128
##########
mailbox/api/src/main/java/org/apache/james/mailbox/model/MailboxAnnotationKey.java:
##########
@@ -25,21 +25,18 @@
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
-import com.ibm.icu.text.UnicodeSet;
+import com.google.re2j.Pattern;
public class MailboxAnnotationKey {
public static final String SLASH_CHARACTER = "/";
public static final String TWO_SLASH_CHARACTER = "//";
- private static final UnicodeSet NAME_ANNOTATION_PATTERN = new
UnicodeSet("[[a-z][A-Z][0-9]]")
- .add(SLASH_CHARACTER)
- .freeze();
+ private static final Pattern NAME_ANNOTATION_PATTERN =
Pattern.compile("^([\\w\\d/]*)$");
Review Comment:
Switched to CharMatcher
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]