aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-07-22 01:39:43 +0200
committerGravatar Numerlor <[email protected]>2020-07-22 01:39:43 +0200
commit1c997846f282f76d17700f0f16c0a0abb5c49a30 (patch)
tree619111af1d9f526e28d217a8cb78c81c27a102d4
parentRemove conversion to str when finding elements. (diff)
Fix handling of elements when fetching signatures.
After the change to `find_elements_until_tag`, the text contentsneed to be extracted from the tags instead of passing them directly to re.
-rw-r--r--bot/cogs/doc/parsing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/doc/parsing.py b/bot/cogs/doc/parsing.py
index acf3a0804..725fe47cd 100644
--- a/bot/cogs/doc/parsing.py
+++ b/bot/cogs/doc/parsing.py
@@ -86,7 +86,7 @@ def get_signatures(start_signature: PageElement) -> List[str]:
start_signature,
*find_next_siblings_until_tag(start_signature, ("dd",), limit=2),
)[-3:]:
- signature = UNWANTED_SIGNATURE_SYMBOLS_RE.sub("", element)
+ signature = UNWANTED_SIGNATURE_SYMBOLS_RE.sub("", element.text)
if signature:
signatures.append(signature)