From c4ef2a7d4b32024fe56abcdb5d78d1fe9cce0cbe Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Tue, 28 May 2024 20:38:39 -0400 Subject: [PATCH] fix(seautils): fixed some broken regex --- seautils/seautils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seautils/seautils.py b/seautils/seautils.py index 9200927..ac71d1c 100644 --- a/seautils/seautils.py +++ b/seautils/seautils.py @@ -30,7 +30,7 @@ def md(soup: BeautifulSoup, **options) -> Any | str: return MarkdownConverter(**options).convert_soup(soup) def convert_rfc_references(text: str): - return re.sub(r"\(RFC\s(\d+)\)", r"(https://www.rfc-editor.org/rfc/rfc\1.html)", text) + return re.sub(r"\(\.rfc\s(\d+)", r"(https://www.rfc-editor.org/rfc/rfc\1.html", text) class SeaUtils(commands.Cog): """A collection of random utilities."""