mirror of
https://github.com/sismics/docs.git
synced 2025-12-12 17:26:13 +00:00
allow hyphen in username (#731)
* allow hyphen in username * remove extra escaping --------- Co-authored-by: Enrice <erich.mauerboeck@ergo-versicherung.at>
This commit is contained in:
@@ -21,7 +21,7 @@ public class ValidationUtil {
|
||||
|
||||
private static Pattern ALPHANUMERIC_PATTERN = Pattern.compile("[a-zA-Z0-9_]+");
|
||||
|
||||
private static Pattern USERNAME_PATTERN = Pattern.compile("[a-zA-Z0-9_@\\.]+");
|
||||
private static Pattern USERNAME_PATTERN = Pattern.compile("[a-zA-Z0-9_@.-]+");
|
||||
|
||||
/**
|
||||
* Checks that the argument is not null.
|
||||
|
||||
Reference in New Issue
Block a user