Twitter Archivist: Fix off by one error in af6c017086

This commit is contained in:
jeremy@jermolene.com 2022-11-13 19:11:56 +00:00
parent af6c017086
commit 710e51fe04
1 changed files with 1 additions and 1 deletions

View File

@ -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];