From 85743aebd5a5884b85b14bb9ac90ef4485125d36 Mon Sep 17 00:00:00 2001 From: Mustaque Ahmed Date: Tue, 7 Jan 2025 01:06:40 +0530 Subject: [PATCH] feat: add support for file paths starts with `../` `./` and `/` To implement this I extended the existing regex variable in the `src/config` dir. In a few test cases, extra space is added intentionally to verify we don't include space in the URL as it looks & feels odd. --- src/config/url.zig | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/config/url.zig b/src/config/url.zig index 1d0764736..f5709a383 100644 --- a/src/config/url.zig +++ b/src/config/url.zig @@ -24,7 +24,7 @@ const oni = @import("oniguruma"); /// handling them well requires a non-regex approach. pub const regex = "(?:" ++ url_schemes ++ - \\)(?:[\w\-.~:/?#@!$&*+,;=%]+(?:[\(\[]\w*[\)\]])?)+(?