Skip to content

Commit 6e33d15

Browse files
committed
Fixed another bug with partial argument matching
1 parent 1702a98 commit 6e33d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

argument-parser.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ argGetName() {
5353
for k in "${!argExpected[@]}"
5454
do
5555
regexArg="\|($1)\|"
56-
[[ "$k|" =~ $regexArg ]]
56+
[[ "|$k|" =~ $regexArg ]]
5757
if [ "${BASH_REMATCH[1]}" != "" ]; then
5858

5959
regexArgName="(.+) - "

0 commit comments

Comments
 (0)