diff --git a/share/functions/__fish_npm_helper.fish b/share/functions/__fish_npm_helper.fish index 2790c997e..6addae48f 100644 --- a/share/functions/__fish_npm_helper.fish +++ b/share/functions/__fish_npm_helper.fish @@ -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