From 1a359f220394d76cc981df89b199e1c05ebe746e Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Fri, 1 Dec 2023 13:23:28 +0100 Subject: [PATCH] log: to many warnings because of incorrect regex --- gmod/initConfig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmod/initConfig.sh b/gmod/initConfig.sh index 4c6aeff..d98670f 100644 --- a/gmod/initConfig.sh +++ b/gmod/initConfig.sh @@ -14,7 +14,7 @@ function configReplace() { source="$1" target="\"$2\"" - if ! echo "$2" | grep -qe "^[a-zA-Z0-9_-]+$"; then + if ! echo "$2" | grep -qe "^[a-zA-Z0-9_-]*$"; then echo "[initConfig.sh]Warning your configured value for $source doesn't match regex ^[a-zA-Z0-9_-]+$. Special symbols could crash this script because they are not sanitized." fi