mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
tests for note properties
This commit is contained in:
@@ -86,7 +86,7 @@ function getExpression(tokens, parsingContext) {
|
||||
return parseRelation(tokens[i]);
|
||||
}
|
||||
|
||||
if (tokens[i] === 'title') {
|
||||
if (PropertyComparisonExp.isProperty(tokens[i])) {
|
||||
const propertyName = tokens[i];
|
||||
const operator = tokens[i + 1];
|
||||
const comparedValue = tokens[i + 2];
|
||||
@@ -101,6 +101,8 @@ function getExpression(tokens, parsingContext) {
|
||||
|
||||
return new PropertyComparisonExp(propertyName, comparator);
|
||||
}
|
||||
|
||||
parsingContext.addError(`Unrecognized note property "${tokens[i]}"`);
|
||||
}
|
||||
|
||||
function parseLabel(labelName) {
|
||||
|
||||
Reference in New Issue
Block a user