mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 13:25:20 +00:00
fix/refac: tts remove formattings
This commit is contained in:
parent
54dc24986f
commit
27bb5f5369
1 changed files with 0 additions and 1 deletions
|
|
@ -750,7 +750,6 @@ export const removeFormattings = (str: string) => {
|
||||||
|
|
||||||
// Cleanup
|
// Cleanup
|
||||||
.replace(/\[\^[^\]]*\]/g, '') // Footnotes
|
.replace(/\[\^[^\]]*\]/g, '') // Footnotes
|
||||||
.replace(/[-*_~]/g, '') // Remaining markers
|
|
||||||
.replace(/\n{2,}/g, '\n')
|
.replace(/\n{2,}/g, '\n')
|
||||||
); // Multiple newlines
|
); // Multiple newlines
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue