ctubbsii commented on a change in pull request #331: ACCUMULO-4756 Allow 
default tables validate REST
URL: https://github.com/apache/accumulo/pull/331#discussion_r155327663
 
 

 ##########
 File path: 
server/monitor/src/main/java/org/apache/accumulo/monitor/util/ParameterValidator.java
 ##########
 @@ -22,6 +22,8 @@
 public interface ParameterValidator {
 
   String ALPHA_NUM_REGEX = "\\w+";
+  // Allow the special default table IDs
+  String ALPHA_NUM_REGEX_TABLE_ID = "[\\!\\+]?(\\w)+";
 
 Review comment:
   I don't think you need to escape either the exclamation or the plus sign in 
the character class. Also, you should not put the `\\w` in a capture group 
(remove parens).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to