1
0
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:
Erich Mauerböck
2023-11-03 15:36:02 +01:00
committed by GitHub
parent 13762eb67f
commit 428e898a7a
4 changed files with 7 additions and 7 deletions

View File

@@ -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.