mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 10:17:56 +08:00
🐛 修复文本替换,同步测试用文件内容
This commit is contained in:
@@ -98,7 +98,7 @@ class Arknights(NewMessage):
|
||||
data = ArkBulletinResponse.parse_obj(raw_data.json()).data
|
||||
|
||||
def title_escape(text: str) -> str:
|
||||
return text.replace("\n", " - ")
|
||||
return text.replace("\\n", " - ")
|
||||
|
||||
# gen title, content
|
||||
if data.header:
|
||||
|
||||
Reference in New Issue
Block a user