1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

fix wiki.search options invert init problem (#5542)

This commit is contained in:
Mario Pietsch 2021-03-12 22:12:06 +01:00 committed by GitHub
parent 85646e5db3
commit 05acf3dce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1242,7 +1242,7 @@ exports.search = function(text,options) {
var results = [], var results = [],
source = options.source || this.each; source = options.source || this.each;
source(function(tiddler,title) { source(function(tiddler,title) {
if(searchTiddler(title) !== options.invert) { if(searchTiddler(title) !== invert) {
results.push(title); results.push(title);
} }
}); });