Silence string match expression

This commit is contained in:
Mahmoud Al-Qudsi 2024-07-07 13:08:42 -05:00
parent 725bcef117
commit a33d12fe53

View File

@ -30,7 +30,7 @@ function __npm_filtered_list_packages
end
# Do not provide any completions if nothing has been entered yet to avoid long hang.
if string match -r . (commandline -ct)
if string match -rq . (commandline -ct)
# Filter the results here rather than in the C++ code due to #5267
all-the-package-names | string match -er -- '(?:\b|_|^)'(commandline -ct |
string escape --style=regex) | head -n1000