aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Rem <[email protected]>2023-09-22 16:48:07 -0500
committerGravatar GitHub <[email protected]>2023-09-22 21:48:07 +0000
commit30e20e83efb0a34d6b6bd8da4c54b0d70628f4e3 (patch)
treeeeb3e4cf622053a986f9cf37ee6c9ddecf810c3c
parentBump pip-licenses from 4.3.2 to 4.3.3 (#2765) (diff)
fix: split docs command on whitespace characters (#2749)
-rw-r--r--bot/exts/info/doc/_cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py
index c82f40557..764e469cc 100644
--- a/bot/exts/info/doc/_cog.py
+++ b/bot/exts/info/doc/_cog.py
@@ -233,7 +233,7 @@ class DocCog(commands.Cog):
"""
doc_item = self.doc_symbols.get(symbol_name)
if doc_item is None and " " in symbol_name:
- symbol_name = symbol_name.split(" ", maxsplit=1)[0]
+ symbol_name = symbol_name.split(maxsplit=1)[0]
doc_item = self.doc_symbols.get(symbol_name)
return symbol_name, doc_item