Remove unused splitSentences function from utils.js

6af3f2ee7e0c01dc4d2de110410ba98a13b34b44

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +0 -4Showing whitespace changes
public/scripts/utils.js+0 -4
@@ -1015,10 +1015,6 @@ export function splitRecursive(input, length, delimiters = ['\n\n', '\n', ' ', '
1015 return result;1015 return result;
1016}1016}
10171017
1018export function splitSentences(input, length) {
1019 var pattRegex = new RegExp(`^[\\s\\S]{${Math.floor(length / 2)},${length}}[.!?,]{1}|^[\\s\\S]{1,${length}}$|^[\\s\\S]{1,${length}}`);
1020}
1021
1022/**1018/**
1023 * Checks if a string is a valid data URL.1019 * Checks if a string is a valid data URL.
1024 * @param {string} str The string to check.1020 * @param {string} str The string to check.