|
@@ -16,8 +16,8 @@ export function trimTopic(topic: string) {
|
|
|
return (
|
|
return (
|
|
|
topic
|
|
topic
|
|
|
// fix for gemini
|
|
// fix for gemini
|
|
|
- .replace(/^["""*]+|[""*]+$/g, "")
|
|
|
|
|
- .replace(/[,。!?""""、,.!?*]*$/, "")
|
|
|
|
|
|
|
+ .replace(/^["“”*]+|["“”*]+$/g, "")
|
|
|
|
|
+ .replace(/[,。!?”“"、,.!?*]*$/, "")
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|