mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 12:19:11 +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) {
|
function checkTiddler(title) {
|
||||||
var tiddler = options.wiki.getTiddler(title);
|
var tiddler = options.wiki.getTiddler(title);
|
||||||
if(tiddler) {
|
if(tiddler) {
|
||||||
var match;
|
var match,
|
||||||
|
text = tiddler.getFieldString(operator.operator.replace(/:$/, ""));
|
||||||
if(operator.regexp) {
|
if(operator.regexp) {
|
||||||
match = !! operator.regexp.exec(tiddler.getFieldString(operator.operator));
|
match = !! operator.regexp.exec(text);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
match = tiddler.getFieldString(operator.operator) === operator.operand;
|
match = text === operator.operand;
|
||||||
}
|
}
|
||||||
if(operator.prefix === "!") {
|
if(operator.prefix === "!") {
|
||||||
match = !match;
|
match = !match;
|
||||||
|
Loading…
Reference in New Issue
Block a user