Merge pull request #510 from Yidadaa/user-prompt

feat: split docs, clear messages and fix stop response
This commit is contained in:
Yifei Zhang
2023-04-06 04:02:48 +08:00
committed by GitHub
30 changed files with 514 additions and 193 deletions

View File

@@ -3,7 +3,7 @@ import { showToast } from "./components/ui-lib";
import Locale from "./locales";
export function trimTopic(topic: string) {
return topic.replace(/[,。!?、,.!?]*$/, "");
return topic.replace(/[,。!?”“"、,.!?]*$/, "");
}
export async function copyToClipboard(text: string) {