From ae8d0d5db4f7c3dac6513742991b3d942b6ebf61 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Tue, 28 May 2024 21:17:29 -0400 Subject: [PATCH] fix(seautils): added missing () --- seautils/seautils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seautils/seautils.py b/seautils/seautils.py index 5ef5dda..638a01e 100644 --- a/seautils/seautils.py +++ b/seautils/seautils.py @@ -31,7 +31,7 @@ def md(soup: BeautifulSoup, **options) -> Any | str: def convert_rfc_references(text: str, number: int) -> str: one = re.sub(r"\(\.\/rfc(\d+)", r"(https://www.rfc-editor.org/rfc/rfc\1.html", text) - two = re.sub(r"\((#(?:section|page)-\d+)\)", f"https://www.rfc-editor.org/rfc/rfc{number}.html\1", one) + two = re.sub(r"\((#(?:section|page)-\d+)\)", f"(https://www.rfc-editor.org/rfc/rfc{number}.html\1)", one) return two class SeaUtils(commands.Cog):