From a98f3e875d52605351fc96d7b935af3aec6d61f3 Mon Sep 17 00:00:00 2001 From: q Date: Tue, 1 Jan 2019 10:04:55 +0200 Subject: [PATCH] fix regex --- shell/select-option.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/select-option.sh b/shell/select-option.sh index d089682..0501fc3 100755 --- a/shell/select-option.sh +++ b/shell/select-option.sh @@ -13,7 +13,7 @@ function select_option { local clean_opt for opt; do multiselected+=(0) - if [[ "$opt" =~ ^\[.\]* ]]; then # choice starts with [x] + if [[ "$opt" =~ ^\[.\] ]]; then # choice starts with [x] shortcuts+=( "${opt:1:1}" ) choices+=( "${opt:3}" ) else