Skip to content
Snippets Groups Projects
Commit ce45a97d authored by Johan de Klerk's avatar Johan de Klerk
Browse files

Added "_" to valid usernames

parent 95f078ee
Branches
Tags
No related merge requests found
...@@ -83,7 +83,7 @@ func IsAlphaNumericOrDash(str string) bool { ...@@ -83,7 +83,7 @@ func IsAlphaNumericOrDash(str string) bool {
} }
func IsValidUsername(str string) bool { func IsValidUsername(str string) bool {
regex := regexp.MustCompile("^[a-zA-Z0-9-.@+]*$") regex := regexp.MustCompile("^[a-zA-Z0-9-.@+_]*$")
return regex.MatchString(str) return regex.MatchString(str)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment