Browse Source

Update dns_czechia.sh

Refactor: use _lower_case() helper
pull/6764/head
CZECHIA-COM 4 weeks ago
committed by neil
parent
commit
d08f4afbdb
  1. 5
      dnsapi/dns_czechia.sh

5
dnsapi/dns_czechia.sh

@ -113,10 +113,13 @@ _czechia_norm_zonelist() {
# - trimmed
# - trailing dots removed
# - empty entries dropped
in="$1"
[ -z "$in" ] && return 0
in="$(_lower_case "$in")"
printf "%s" "$in" |
tr '[:upper:]' '[:lower:]' |
tr ' ' ',' |
tr -s ',' |
sed 's/[\t\r\n]//g; s/\.$//; s/^,//; s/,$//; s/,,*/,/g'

Loading…
Cancel
Save