nonEmptyInputValidator = new IInputValidator() {
@Override
public String isValid(String text) {
- if(text == null || text.isEmpty()) {
+ if(text == null || text.isEmpty() || !text.matches("[[_.-]*\\w*]*")) {
return Messages.GROUP_CREATOR_Name_not_accepted_message;
}
return null;