diff options
| author | VolgaIgor <43250768+VolgaIgor@users.noreply.github.com> | 2026-01-12 04:53:43 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-12 04:53:43 +0300 |
| commit | a691eaea8dc2b08bba3f24ef4d97fb798204ad45 (patch) | |
| tree | 8265170022ea29f1d0d6272434190ea563044f6c /update.sh | |
| parent | da447e5669c3adaef688e8c361ed2c85426fcdeb (diff) | |
Fixed incorrect filtering for IDN top-level domains (#3666)
Diffstat (limited to 'update.sh')
| -rwxr-xr-x | update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -78,7 +78,7 @@ is_ip() { is_ipv4 "$1" || is_ipv6 "$1" } is_domain() { - [[ "$1" =~ ^([A-Za-z0-9](-*[A-Za-z0-9])*\.)+[A-Za-z]{2,}$ ]] && return 0 || return 1 + [[ "$1" =~ ^([A-Za-z0-9](-*[A-Za-z0-9])*\.)+(xn--[a-z0-9]{2,}|[A-Za-z]{2,})$ ]] && return 0 || return 1 } # Port helpers |
