mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-04 03:49:47 -06:00
16 lines
390 B
JavaScript
16 lines
390 B
JavaScript
export default class OrExp {
|
|
constructor(subExpressions) {
|
|
this.subExpressions = subExpressions;
|
|
}
|
|
|
|
execute(noteSet, searchContext) {
|
|
const resultNoteSet = new NoteSet();
|
|
|
|
for (const subExpression of this.subExpressions) {
|
|
resultNoteSet.mergeIn(subExpression.execute(noteSet, searchContext));
|
|
}
|
|
|
|
return resultNoteSet;
|
|
}
|
|
}
|