mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
Merge branch 'ChatGPTNextWeb:main' into main
This commit is contained in:
commit
3a5f0b2d0e
@ -9,8 +9,9 @@ export function trimTopic(topic: string) {
|
|||||||
// This will remove the specified punctuation from the end of the string
|
// This will remove the specified punctuation from the end of the string
|
||||||
// and also trim quotes from both the start and end if they exist.
|
// and also trim quotes from both the start and end if they exist.
|
||||||
return topic
|
return topic
|
||||||
.replace(/^["“”]+|["“”]+$/g, "")
|
// fix for gemini
|
||||||
.replace(/[,。!?”“"、,.!?]*$/, "");
|
.replace(/^["“”*]+|["“”*]+$/g, "")
|
||||||
|
.replace(/[,。!?”“"、,.!?*]*$/, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function copyToClipboard(text: string) {
|
export async function copyToClipboard(text: string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user