fix(regex): add s3 & gs to uri

This commit is contained in:
graelo 2023-06-02 22:22:06 +02:00
parent 2a43d5f6a0
commit f2df79e254
2 changed files with 10 additions and 3 deletions

View file

@ -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/([^ ]+)"),