mirror of
https://github.com/zadam/trilium.git
synced 2025-10-04 12:34:47 +08:00
19 lines
390 B
JavaScript
19 lines
390 B
JavaScript
"use strict";
|
|
|
|
const Expression = require('./expression');
|
|
|
|
class NotExp extends Expression {
|
|
constructor(subExpression) {
|
|
super();
|
|
|
|
this.subExpression = subExpression;
|
|
}
|
|
|
|
execute(noteSet, searchContext) {
|
|
const subNoteSet = this.subExpression.execute(noteSet, searchContext);
|
|
|
|
return noteSet.minus(subNoteSet);
|
|
}
|
|
}
|
|
|
|
module.exports = NotExp;
|