From a33d12fe532a531ca856e71b3b8083e09434e650 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sun, 7 Jul 2024 13:08:42 -0500 Subject: [PATCH] Silence `string match` expression --- share/functions/__fish_npm_helper.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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