From d8eb89f384adbebd18459a670409789f554f45f3 Mon Sep 17 00:00:00 2001 From: Ben Kircher Date: Sun, 8 Feb 2026 13:41:23 +0100 Subject: [PATCH] url: fix matching `~`, `$VAR`, `.directory/` Related to #1972 This commit adds three new alternatives for `rooted_or_relative_path_prefix`: - `~/` - `$VAR` and - `.local/`, `.config/` etc. for dot-prefixed directory names --- src/config/url.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/url.zig b/src/config/url.zig index 7abedcf10..5f008b5e3 100644 --- a/src/config/url.zig +++ b/src/config/url.zig @@ -75,7 +75,7 @@ const scheme_url_branch = no_trailing_punctuation; const rooted_or_relative_path_prefix = - \\(?:\.\.\/|\.\/|(?