mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 04:46:25 +08:00
🐛 fix wrong space strip
This commit is contained in:
parent
e7993a4485
commit
01fa2ece6e
@ -425,7 +425,7 @@ def on_command(cmd: Union[str, Tuple[str, ...]],
|
||||
segment = message.pop(0)
|
||||
new_message = message.__class__(
|
||||
str(segment)
|
||||
[len(state["_prefix"]["raw_command"]):].strip()) # type: ignore
|
||||
[len(state["_prefix"]["raw_command"]):].lstrip()) # type: ignore
|
||||
for new_segment in reversed(new_message):
|
||||
message.insert(0, new_segment)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user