Well... bleh

This commit is contained in:
Sauilitired
2014-10-25 16:34:25 +02:00
parent a8ffbd21dc
commit f3055074df
2 changed files with 14 additions and 10 deletions

View File

@ -25,7 +25,7 @@ public class Flag {
};
String tempValue = value;
for(char c : allowedCharacters)
tempValue = value.replace(c, 'c');
tempValue = tempValue.replace(c, 'c');
if (!StringUtils.isAlphanumericSpace(tempValue)) {
throw new IllegalArgumentException("Flag must be alphanumerical (colours and some special characters are allowed)");
}