From 7c171b75fb955a69c58f1818d0285b17f664d8fb Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 14 Dec 2020 08:46:27 -0500 Subject: [PATCH] Updated link pattern --- cogguide/cogguide.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogguide/cogguide.py b/cogguide/cogguide.py index 7023488..00fb4a2 100644 --- a/cogguide/cogguide.py +++ b/cogguide/cogguide.py @@ -12,7 +12,8 @@ log = logging.getLogger("red.fox-v3.cogguide") EXCLUDED_LIST = ["reinstallreqs"] -LINK_PATTERN = re.compile(r"\[(.+)]\s?\((https?:\/\/[\w\d.\/?=#-@]+)\)") +# Matches [link](https://website.com) but not `[link](https://web.com)` +LINK_PATTERN = re.compile(r"(?