From c5d6e35afca0381fc232af765b2490a8ceec70ea Mon Sep 17 00:00:00 2001 From: rootiest Date: Mon, 8 Jun 2026 23:16:33 -0400 Subject: [PATCH] fix(config-help): add -- separator before -+ regex pattern in string replace --- functions/config-help.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/config-help.fish b/functions/config-help.fish index 2d63e31..9a3f4ba 100644 --- a/functions/config-help.fish +++ b/functions/config-help.fish @@ -113,7 +113,7 @@ function config-help --description 'Open the offline fish shell configuration ma set -l anchor (string lower -- $found_text \ | string replace -ra '[^a-z0-9 -]' '' \ | string replace -ra ' +' '-' \ - | string replace -ra '-+' '-' \ + | string replace -ra -- '-+' '-' \ | string trim -c '-') # 1. Sub-section: path stored as "filename.html#anchor" set -l match (grep -o "\"path\":\"[^\"]*#$anchor\"" "$sitemap" | head -1)