We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d00a64b commit 4469398Copy full SHA for 4469398
func/main.sh
@@ -556,7 +556,7 @@ validate_format_email() {
556
557
# Username
558
validate_format_username() {
559
- if ! [[ "$1" =~ ^[a-zA-Z0-9]+([\.|_|-][a-zA-Z0-9]+)?$ ]]; then
+ if ! [[ "$1" =~ ^[[:alnum:]]+([\.|_|-][[:alnum:]]+)?$ ]]; then
560
echo "Error: $2 $1 is not valid"
561
log_event "$E_INVALID" "$EVENT"
562
exit $E_INVALID
0 commit comments