fix regex
This commit is contained in:
@@ -13,7 +13,7 @@ function select_option {
|
|||||||
local clean_opt
|
local clean_opt
|
||||||
for opt; do
|
for opt; do
|
||||||
multiselected+=(0)
|
multiselected+=(0)
|
||||||
if [[ "$opt" =~ ^\[.\]* ]]; then # choice starts with [x]
|
if [[ "$opt" =~ ^\[.\] ]]; then # choice starts with [x]
|
||||||
shortcuts+=( "${opt:1:1}" )
|
shortcuts+=( "${opt:1:1}" )
|
||||||
choices+=( "${opt:3}" )
|
choices+=( "${opt:3}" )
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user