diff options
| author | 2020-07-22 01:39:43 +0200 | |
|---|---|---|
| committer | 2020-07-22 01:39:43 +0200 | |
| commit | 1c997846f282f76d17700f0f16c0a0abb5c49a30 (patch) | |
| tree | 619111af1d9f526e28d217a8cb78c81c27a102d4 | |
| parent | Remove 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.py | 2 |
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) |