perf: 发送按键

This commit is contained in:
archer
2023-04-03 17:14:46 +08:00
parent f97c29b41e
commit 042b0c535a
2 changed files with 18 additions and 17 deletions

View File

@@ -155,10 +155,7 @@ function splitText(text: string) {
// 如果Q和A都存在就将其添加到结果中
result.push({
q,
a: a // 过滤空行
.split('\n')
.filter((item) => item)
.join('\n')
a: a.trim().replace(/\n\s*/g, '\n')
});
}
}