fix: revert unintended changes

This commit is contained in:
Kadxy 2025-01-31 00:59:03 +08:00
parent 143be69a7f
commit be645aab37
1 changed files with 2 additions and 2 deletions

View File

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