diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index 56f859536..7be7f087a 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -1524,10 +1524,15 @@ Zotero.Fulltext = new function(){ } + /** + * @param {String} text + * @param {String} [charset] + * @return {Array} + */ this.semanticSplitter = function (text, charset) { if (!text){ Zotero.debug('No text to index'); - return; + return []; } try {