fix: revert unintended changes
This commit is contained in:
parent
143be69a7f
commit
be645aab37
|
@ -16,8 +16,8 @@ export function trimTopic(topic: string) {
|
|||
return (
|
||||
topic
|
||||
// fix for gemini
|
||||
.replace(/^["""*]+|[""*]+$/g, "")
|
||||
.replace(/[,。!?""""、,.!?*]*$/, "")
|
||||
.replace(/^["“”*]+|["“”*]+$/g, "")
|
||||
.replace(/[,。!?”“"、,.!?*]*$/, "")
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue