From af41ba9acb42384b2c846298eadf3474a20a4902 Mon Sep 17 00:00:00 2001 From: allan Date: Tue, 4 Nov 2025 13:37:53 +0100 Subject: [PATCH] hyphen error --- certbotinstall | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/certbotinstall b/certbotinstall index 0397f7e..44dad46 100755 --- a/certbotinstall +++ b/certbotinstall @@ -61,10 +61,10 @@ while [[ $# -gt 0 ]]; do exit 1 fi - if [[ ! "$apitoken" =~ ^[A-Za-z0-9_-]{20,120}$ ]]; then - printf "\nERROR: Invalid API token format.\n" - printf "Expected 20-120 characters (A–Z, a–z, 0–9, - or _).\n\n" - exit 1 + if [[ ! "$apitoken" =~ ^[A-Za-z0-9_-]{20,120}$ ]]; then + printf "\nERROR: Invalid API token format.\n" + printf "Expected 20-120 characters (A-Z, a-z, 0-9, - or _).\n\n" + exit 1 fi shift