We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33a8a57 commit e94dd4aCopy full SHA for e94dd4a
1 file changed
func/main.sh
@@ -555,8 +555,7 @@ validate_format_username() {
555
# Domain
556
validate_format_domain() {
557
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|_|/|\|\"|'|;|%|\`| ]"
558
- dpart1=$(echo $1 | cut -f 1 -d .)
559
- if [[ "$1" =~ $exclude ]] || [ -z "$dpart1" ]; then
+ if [[ "$1" =~ $exclude ]] || [[ "$1" =~ "^[0-9]+$" ]]; then
560
echo "Error: domain $1 is not valid"
561
log_event "$E_INVALID" "$EVENT"
562
exit $E_INVALID
0 commit comments