forked from cswimr/SeaCogs
fix(seautils): added missing ()
This commit is contained in:
parent
0ea80075f6
commit
ae8d0d5db4
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def md(soup: BeautifulSoup, **options) -> Any | str:
|
||||||
|
|
||||||
def convert_rfc_references(text: str, number: int) -> 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)
|
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
|
return two
|
||||||
|
|
||||||
class SeaUtils(commands.Cog):
|
class SeaUtils(commands.Cog):
|
||||||
|
|
Loading…
Reference in a new issue