mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +00:00
I feel ashamed :( Somehow this slipped me :( Sorry!
This commit is contained in:
parent
a3384d101e
commit
9444ef095f
@ -21,12 +21,13 @@ exports.field = function(source,operator,options) {
|
||||
function checkTiddler(title) {
|
||||
var tiddler = options.wiki.getTiddler(title);
|
||||
if(tiddler) {
|
||||
var match;
|
||||
var match,
|
||||
text = tiddler.getFieldString(operator.operator.replace(/:$/, ""));
|
||||
if(operator.regexp) {
|
||||
match = !! operator.regexp.exec(tiddler.getFieldString(operator.operator));
|
||||
match = !! operator.regexp.exec(text);
|
||||
}
|
||||
else {
|
||||
match = tiddler.getFieldString(operator.operator) === operator.operand;
|
||||
match = text === operator.operand;
|
||||
}
|
||||
if(operator.prefix === "!") {
|
||||
match = !match;
|
||||
|
Loading…
Reference in New Issue
Block a user