diff --git a/app/utils.ts b/app/utils.ts index 887efd574..f23378019 100644 --- a/app/utils.ts +++ b/app/utils.ts @@ -16,8 +16,8 @@ export function trimTopic(topic: string) { return ( topic // fix for gemini - .replace(/^["""*]+|[""*]+$/g, "") - .replace(/[,。!?""""、,.!?*]*$/, "") + .replace(/^["“”*]+|["“”*]+$/g, "") + .replace(/[,。!?”“"、,.!?*]*$/, "") ); }