This commit is contained in:
Sauilitired
2014-10-18 12:12:32 +02:00
parent 7e62094152
commit e4cd1bdc56
2 changed files with 51 additions and 48 deletions

View File

@ -17,7 +17,7 @@ public class AbstractFlag {
* in length
*/
public AbstractFlag(String key) {
if (!StringUtils.isAlpha(key)) {
if (!StringUtils.isAlpha(key.replaceAll("_", "").replaceAll("-", ""))) {
throw new IllegalArgumentException("Flag must be alphabetic characters");
}
if (key.length() > 16) {