From 746414e4d4ddc2f21940aa133e030199f3be2cfa Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 19 Oct 2020 12:54:23 -0400 Subject: [PATCH] Gotta use raw text for regex obviously --- cogguide/cogguide.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogguide/cogguide.py b/cogguide/cogguide.py index 040d504..fd29816 100644 --- a/cogguide/cogguide.py +++ b/cogguide/cogguide.py @@ -36,7 +36,7 @@ def markdown_link_replace(match, starts_with_text=None): def prepare_description(command: commands.Command): description = command.description or command.help description = description.replace("`", "``") - pattern = re.compile("\[(.+)]\s?\((https?:\/\/[\w\d.\/?=#]+)\)") + pattern = re.compile(r"\[(.+)]\s?\((https?:\/\/[\w\d.\/?=#]+)\)") description = pattern.sub(markdown_link_replace, description) return description