"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "c7a9b5ccfab963803916e63df68058a3938d511b"
Commit 6d350fb8 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

revert: text split

parent 7212b7c8
......@@ -525,7 +525,7 @@ export const extractSentences = (text) => {
});
// Split the modified text into sentences based on common punctuation marks, avoiding these blocks
let sentences = text.match(/[^.?!]+[.!?]+[\])'"`’”]*|.+/g);
let sentences = text.split(/(?<=[.!?])\s+/);
// Restore code blocks and process sentences
sentences = sentences.map((sentence) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment