fix regex

This commit is contained in:
q
2019-01-01 10:04:55 +02:00
parent 50251917ea
commit a98f3e875d

View File

@@ -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