fix #10128: adapt validator for new username
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / annotatedlineeditor / e4 / handler / NewObjectHandler.java
index 4467eebafc52235757a26d816324e5de16a536a3..3a1cdf34a795450057ede75a0b72223374947fc9 100644 (file)
@@ -63,7 +63,7 @@ public class NewObjectHandler {
                 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;