From 6af3f2ee7e0c01dc4d2de110410ba98a13b34b44 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 12 Mar 2025 23:29:55 +0200 Subject: [PATCH] Remove unused splitSentences function from utils.js --- public/scripts/utils.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/public/scripts/utils.js b/public/scripts/utils.js index 0b3c8776a..f0ae9bf59 100644 --- a/public/scripts/utils.js +++ b/public/scripts/utils.js @@ -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.