From 7d87a58a731dde41b70e0fd01bf0c03793722ff3 Mon Sep 17 00:00:00 2001 From: Ben Kircher Date: Sat, 14 Feb 2026 09:40:35 +0100 Subject: [PATCH] url: fix trailing colon in path matches Paths like `./.config/ghostty:` and `./Downloads:` were incorrectly including the trailing colon. Add a `no_trailing_colon` lookbehind to all path branches and prevent space segments from starting after a colon so that `": text"` is not consumed as part of the path. --- src/config/url.zig | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/config/url.zig b/src/config/url.zig index fa902210f..da0892a91 100644 --- a/src/config/url.zig +++ b/src/config/url.zig @@ -48,6 +48,10 @@ const no_trailing_punctuation = \\(?