Skip to content

Commit d86e5e1

Browse files
committed
added dash as a valid character
1 parent 729c384 commit d86e5e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ validate_format_email() {
556556

557557
# Username
558558
validate_format_username() {
559-
if ! [[ "$1" =~ ^[a-zA-Z0-9]+([\.|_][a-zA-Z0-9]+)?$ ]]; then
559+
if ! [[ "$1" =~ ^[a-zA-Z0-9]+([\.|_|-][a-zA-Z0-9]+)?$ ]]; then
560560
echo "Error: $2 $1 is not valid"
561561
log_event "$E_INVALID" "$EVENT"
562562
exit $E_INVALID

0 commit comments

Comments
 (0)