Skip to content

Commit

Permalink
validation: fix invalid domain check
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Dec 26, 2024
1 parent 3e3cba4 commit 7ef8c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/validate_domains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ validate() {
filter "$whitelisted_tld" whitelisted_tld

# Remove non-domain entries including IP addresses excluding Punycode
regex='[[:alnum:]][[:alnum:].-]+[[:alnum:]]\.[[:alnum:]-]*[a-z]{2,}[[:alnum:]-]*'
regex='^[[:alnum:]][[:alnum:].-]+[[:alnum:]]\.[[:alnum:]-]*[a-z]{2,}[[:alnum:]-]*$'
invalid="$(grep -vE "$regex" "$RAW")"
filter "$invalid" invalid
# The dead domains file is also checked here as invalid entries may get
Expand Down

0 comments on commit 7ef8c40

Please sign in to comment.