From 8361bbfadcf5114125fecf5fb6e2831c8187f932 Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Wed, 4 Oct 2023 12:50:13 -0700 Subject: [PATCH] Tweak to basic syntax check. --- scripts/lib/bashy-core/arg-processor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/bashy-core/arg-processor.sh b/scripts/lib/bashy-core/arg-processor.sh index 329cac5..ebeb6e5 100644 --- a/scripts/lib/bashy-core/arg-processor.sh +++ b/scripts/lib/bashy-core/arg-processor.sh @@ -641,7 +641,7 @@ function _argproc_janky-args { fi if [[ ${a} =~ ^--. ]]; then - if ! [[ ${a} =~ ^--([a-z]+)(=.*)?$ ]]; then + if ! [[ ${a} =~ ^--([a-z][-a-z]+)(=.*)?$ ]]; then error-msg --file-line=2 "Invalid option syntax: ${a}" _argproc_declarationError=1 return 1