mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-17 16:20:05 +08:00
🐛 fix non text cqcode not unescaped
This commit is contained in:
parent
338d5e6f17
commit
bc459b5ff4
@ -228,7 +228,7 @@ class Message(BaseMessage):
|
||||
yield MessageSegment(type_, {"text": data})
|
||||
else:
|
||||
data = {
|
||||
k: v for k, v in map(
|
||||
k: unescape(v) for k, v in map(
|
||||
lambda x: x.split("=", maxsplit=1),
|
||||
filter(lambda x: x, (
|
||||
x.lstrip() for x in data.split(","))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user