mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 06:43:15 +00:00
just fixes list filter, no further refactoring
previously did not correctly handle / match the source but only output the list as is replaces https://github.com/Jermolene/TiddlyWiki5/pull/1419
This commit is contained in:
parent
d340277cb2
commit
4991c4d6dc
|
@ -2,9 +2,7 @@
|
||||||
title: $:/core/modules/filters/list.js
|
title: $:/core/modules/filters/list.js
|
||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: filteroperator
|
module-type: filteroperator
|
||||||
|
|
||||||
Filter operator returning the tiddlers whose title is listed in the operand tiddler
|
Filter operator returning the tiddlers whose title is listed in the operand tiddler
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
|
@ -27,7 +25,11 @@ exports.list = function(source,operator,options) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
results = list;
|
source(function(tiddler,title) {
|
||||||
|
if(list.indexOf(title) > -1) {
|
||||||
|
results.push(title);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user