mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 19:45:49 +00:00
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
This commit is contained in:
@@ -75,7 +75,7 @@ const scheme_url_branch =
|
||||
no_trailing_punctuation;
|
||||
|
||||
const rooted_or_relative_path_prefix =
|
||||
\\(?:\.\.\/|\.\/|(?<!\w)\/)
|
||||
\\(?:\.\.\/|\.\/|~\/|\$\w+\/|\.[\w][\w\-.]*\/|(?<!\w)\/)
|
||||
;
|
||||
|
||||
// Branch 2: Absolute paths and dot-relative paths (/, ./, ../).
|
||||
|
||||
Reference in New Issue
Block a user