From 3b27c90a197f89594168c9cfb23a292796c35bab Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 27 Sep 2024 21:08:28 +0300 Subject: [PATCH] Don't allow empty stop strings --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index c58b11ef5..ad3ede8b1 100644 --- a/public/script.js +++ b/public/script.js @@ -2576,7 +2576,7 @@ export function getStoppingStrings(isImpersonate, isContinue) { result.unshift('\n'); } - return result.filter(onlyUnique); + return result.filter(x => x).filter(onlyUnique); } /**