mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-11 09:58:14 +08:00
fix: revert unintended changes
This commit is contained in:
@@ -16,8 +16,8 @@ export function trimTopic(topic: string) {
|
||||
return (
|
||||
topic
|
||||
// fix for gemini
|
||||
.replace(/^["""*]+|[""*]+$/g, "")
|
||||
.replace(/[,。!?""""、,.!?*]*$/, "")
|
||||
.replace(/^["“”*]+|["“”*]+$/g, "")
|
||||
.replace(/[,。!?”“"、,.!?*]*$/, "")
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user