Skip to content

Commit

Permalink
trim limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Oct 28, 2023
1 parent 14c3b09 commit 4549741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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!
}
Expand Down

0 comments on commit 4549741

Please sign in to comment.