Remove unused splitSentences function from utils.js

This commit is contained in:
Cohee
2025-03-12 23:29:55 +02:00
parent d7085b119d
commit 6af3f2ee7e

View File

@ -1015,10 +1015,6 @@ export function splitRecursive(input, length, delimiters = ['\n\n', '\n', ' ', '
return result;
}
export function splitSentences(input, length) {
var pattRegex = new RegExp(`^[\\s\\S]{${Math.floor(length / 2)},${length}}[.!?,]{1}|^[\\s\\S]{1,${length}}$|^[\\s\\S]{1,${length}}`);
}
/**
* Checks if a string is a valid data URL.
* @param {string} str The string to check.