diff --git a/core/modules/wiki.js b/core/modules/wiki.js index 806229866..74ba082d4 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -1119,6 +1119,8 @@ exports.search = function(text,options) { if(!searchTermsRegExps) { return true; } + var notYetFound = searchTermsRegExps.slice(); + var tiddler = self.getTiddler(title); if(!tiddler) { tiddler = new $tw.Tiddler({title: title, text: "", type: "text/vnd.tiddlywiki"}); @@ -1137,50 +1139,40 @@ exports.search = function(text,options) { } else { searchFields = fields; } - for(var fieldIndex=0; fieldIndex0 && fieldIndex