From 45497411eb5e8e43a14c11870f66d392f91d5cc8 Mon Sep 17 00:00:00 2001 From: Concedo Date: Sat, 28 Oct 2023 14:35:02 +0800 Subject: [PATCH] trim limit --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 748cb6b..d135f4f 100644 --- a/index.html +++ b/index.html @@ -7602,7 +7602,7 @@ idx = Math.min(idx,f); } } - if(idx>=0) + if(idx>=0 && idx <= 20) //if unable to trim safely (20 char max), do not trim { trim = trim.substring(idx); //no +1, include leading token! }