mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2026-02-02 09:25:11 +01:00
fix(regex): add s3 & gs to uri
This commit is contained in:
parent
2a43d5f6a0
commit
f2df79e254
2 changed files with 10 additions and 3 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://|s3://|gs://|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