Skip to content

Commit

Permalink
tools: update IDN invalid regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Feb 2, 2025
1 parent 7dc09cc commit f157208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ convert_unicode() {
# https://www.rfc-editor.org/rfc/rfc5891#section-4.2.3.1. If idn2 does
# error, exit 1.
{
grep -vE '\-\.|..--' "$1" | idn2 || exit 1
grep -E '\-\.|..--' "$1"
grep -vE '\-\.|^..--' "$1" | idn2 || exit 1
grep -E '\-\.|^..--' "$1"
} | sort -u -o "$1"
}

Expand Down

0 comments on commit f157208

Please sign in to comment.