Skip to content

Commit fc0d06d

Browse files
committed
Make RE PCRE compatible. Fixes #539
1 parent 5ce24a9 commit fc0d06d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

argcomplete/bash_completion.d/_python-argcomplete

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ _python_argcomplete_global() {
216216
if is-at-least 5.8; then
217217
nosort=(-o nosort)
218218
fi
219-
if [[ "${completions-}" =~ ([^\\]): && "${BASH_REMATCH[2]}" =~ [=/:] ]]; then
219+
if [[ "${completions-}" =~ ([^\\\\]): && "${BASH_REMATCH[2]}" =~ [=/:] ]]; then
220220
nospace=(-S '')
221221
fi
222222
_describe "$executable" completions "${nosort[@]}" "${nospace[@]}"

argcomplete/shell_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
if is-at-least 5.8; then
4848
nosort=(-o nosort)
4949
fi
50-
if [[ "${completions-}" =~ ([^\\]): && "${match[1]}" =~ [=/:] ]]; then
50+
if [[ "${completions-}" =~ ([^\\\\]): && "${match[1]}" =~ [=/:] ]]; then
5151
nospace=(-S '')
5252
fi
5353
_describe "${words[1]}" completions "${nosort[@]}" "${nospace[@]}"

0 commit comments

Comments
 (0)