kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Tighten "has" filter operator
We now require the field not to be an empty string in order to be counted.print-window-tiddler
rodzic
4f5a923ca0
commit
1c283c5586
|
@ -21,7 +21,7 @@ exports.has = function(source,operator,options) {
|
|||
function checkTiddler(title) {
|
||||
var tiddler = options.wiki.getTiddler(title);
|
||||
if(tiddler) {
|
||||
var match = $tw.utils.hop(tiddler.fields,operator.operand);
|
||||
var match = $tw.utils.hop(tiddler.fields,operator.operand) && tiddler.fields[operator.operand] !== "";
|
||||
if(operator.prefix === "!") {
|
||||
match = !match;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue