fix(seautils): ACTUALLY fixed broken regex
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 26s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 39s

This commit is contained in:
Seaswimmer 2024-05-28 20:40:48 -04:00
parent 29b6a2141a
commit 0ed96babdb
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -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(\d+)", r"(https://www.rfc-editor.org/rfc/rfc\1.html", text)
class SeaUtils(commands.Cog):
"""A collection of random utilities."""