mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-12 16:10:07 +01:00
fix: refine url regex: exclude >
This commit is contained in:
parent
12a7e25b94
commit
1f79419934
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ pub(super) const PATTERNS: [(&str, &str); 20] = [
|
|||
("markdown-url", r"\[[^]]*\]\(([^)]+)\)"),
|
||||
(
|
||||
"url",
|
||||
r"((https?://|git@|git://|ssh://|ftp://|file:///)[^ \(\)\[\]\{\}]+)",
|
||||
r"((https?://|git@|git://|ssh://|ftp://|file:///)[^ \(\)\[\]\{\}>]+)",
|
||||
),
|
||||
("email", r"\b([A-z0-9._%+-]+@[A-z0-9.-]+\.[A-z]{2,})\b"),
|
||||
("diff-a", r"--- a/([^ ]+)"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue