1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

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

View File

@ -117,7 +117,7 @@ TwitterArchivist.prototype.loadArchive = async function(options) {
}); });
// Apply the modifications in reverse order // Apply the modifications in reverse order
var rawText = tweet.tweet.full_text, var rawText = tweet.tweet.full_text,
posText = rawText.length - 1, posText = rawText.length,
chunks = []; chunks = [];
for(var modificationIndex=modifications.length-1; modificationIndex>=0; modificationIndex--) { for(var modificationIndex=modifications.length-1; modificationIndex>=0; modificationIndex--) {
var modification = modifications[modificationIndex]; var modification = modifications[modificationIndex];