mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 14:23:53 +00:00
Fixed problem with field filter operator not performing string comparisons
This commit is contained in:
parent
31a4b96f57
commit
9193937125
@ -21,7 +21,7 @@ exports.field = function(source,operator,options) {
|
|||||||
function checkTiddler(title) {
|
function checkTiddler(title) {
|
||||||
var tiddler = options.wiki.getTiddler(title);
|
var tiddler = options.wiki.getTiddler(title);
|
||||||
if(tiddler) {
|
if(tiddler) {
|
||||||
var match = tiddler.fields[operator.operator] === operator.operand;
|
var match = tiddler.getFieldString(operator.operator) === operator.operand;
|
||||||
if(operator.prefix === "!") {
|
if(operator.prefix === "!") {
|
||||||
match = !match;
|
match = !match;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user