From 77100db444a3a5262afa3aa6007f9b109f7e9c7a Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 22 Apr 2021 10:22:43 +0200 Subject: [PATCH] exclude ] } " in URLs this is beginning to get annoying.. --- src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index 497189d..8ce9ad8 100644 --- a/src/state.rs +++ b/src/state.rs @@ -6,7 +6,7 @@ const EXCLUDE_PATTERNS: [(&'static str, &'static str); 1] = [("bash", r"[[:cntrl const PATTERNS: [(&'static str, &'static str); 14] = [ ("markdown_url", r"\[[^]]*\]\(([^)]+)\)"), - ("url", r"((https?://|git@|git://|ssh://|ftp://|file:///)[^ )>]+)"), + ("url", r#"((https?://|git@|git://|ssh://|ftp://|file:///)[^ }\])>"]+)"#), ("diff_a", r"--- a/([^ ]+)"), ("diff_b", r"\+\+\+ b/([^ ]+)"), ("docker", r"sha256:([0-9a-f]{64})"),