mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 17:56:02 +08:00
15 lines
308 B
JavaScript
15 lines
308 B
JavaScript
"use strict";
|
|
|
|
class NotExp {
|
|
constructor(subExpression) {
|
|
this.subExpression = subExpression;
|
|
}
|
|
|
|
execute(noteSet, searchContext) {
|
|
const subNoteSet = this.subExpression.execute(noteSet, searchContext);
|
|
|
|
return noteSet.minus(subNoteSet);
|
|
}
|
|
}
|
|
|
|
module.exports = NotExp;
|