fix(seautils): actually actually fixed incorrect regex
This commit is contained in:
parent
c4ef2a7d4b
commit
29b6a2141a
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ def md(soup: BeautifulSoup, **options) -> Any | str:
|
||||||
return MarkdownConverter(**options).convert_soup(soup)
|
return MarkdownConverter(**options).convert_soup(soup)
|
||||||
|
|
||||||
def convert_rfc_references(text: str):
|
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):
|
class SeaUtils(commands.Cog):
|
||||||
"""A collection of random utilities."""
|
"""A collection of random utilities."""
|
||||||
|
|
Loading…
Reference in a new issue