From 710e51fe04c02b1b97d40dd41e05642902685337 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sun, 13 Nov 2022 19:11:56 +0000 Subject: [PATCH] Twitter Archivist: Fix off by one error in af6c0170868c2cd699f57cef814205368a234c51 --- plugins/tiddlywiki/twitter-archivist/archivist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/twitter-archivist/archivist.js b/plugins/tiddlywiki/twitter-archivist/archivist.js index d2fb23225..e1ca29a42 100644 --- a/plugins/tiddlywiki/twitter-archivist/archivist.js +++ b/plugins/tiddlywiki/twitter-archivist/archivist.js @@ -117,7 +117,7 @@ TwitterArchivist.prototype.loadArchive = async function(options) { }); // Apply the modifications in reverse order var rawText = tweet.tweet.full_text, - posText = rawText.length - 1, + posText = rawText.length, chunks = []; for(var modificationIndex=modifications.length-1; modificationIndex>=0; modificationIndex--) { var modification = modifications[modificationIndex];