diff --git a/chrome/content/zotero/xpcom/data/items.js b/chrome/content/zotero/xpcom/data/items.js index a72cc81375..98e2007f3f 100644 --- a/chrome/content/zotero/xpcom/data/items.js +++ b/chrome/content/zotero/xpcom/data/items.js @@ -1350,6 +1350,11 @@ Zotero.Items = function() { currentWord += codePoint.toLowerCase(); } } + + // Add remaining word, if any + if (currentWord.length > 3) { + freqs.set(currentWord, (freqs.get(currentWord) || 0) + 1); + } // Break ties in locale order. return [...freqs.keys()]