From d08f4afbdb11c5f88f5d239eba086b57eb3e703e Mon Sep 17 00:00:00 2001 From: CZECHIA-COM Date: Mon, 23 Feb 2026 11:06:46 +0100 Subject: [PATCH] Update dns_czechia.sh Refactor: use _lower_case() helper --- dnsapi/dns_czechia.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dnsapi/dns_czechia.sh b/dnsapi/dns_czechia.sh index 7867f14b..1485a014 100644 --- a/dnsapi/dns_czechia.sh +++ b/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'