Skip to content

Commit 0b7189d

Browse files
committed
tar: Fix GNU tar help output parsing regex, fixes #15
1 parent 807f903 commit 0b7189d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/tar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ __gnu_tar_parse_help()
105105
# or more options separated by ', ' separator string. We are matching
106106
# like this then: ^<spaces>(<separator>?<option>)+<whatever>$
107107
if [[ "$line" =~ \
108-
^[[:blank:]]{1,10}(((,[[:blank:]])?(--?([\]\[a-zA-Z0-9?-=]+))(,[[:space:]])?)+).*$ ]]; then
108+
^[[:blank:]]{1,10}(((,[[:blank:]])?(--?([\]\[a-zA-Z0-9?=-]+))(,[[:space:]])?)+).*$ ]]; then
109109

110110
line=${BASH_REMATCH[1]}
111111
str="${line//,/ }"

0 commit comments

Comments
 (0)