Skip to content

Commit

Permalink
Merge pull request #767 from ninoseki/reject-all
Browse files Browse the repository at this point in the history
fix: reject All searcher
  • Loading branch information
ninoseki authored Nov 14, 2023
2 parents 658ccb6 + d59fb86 commit c89e48c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/command/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ export class CommandRunner {
public searchAll(): Result<string, string>[] {
const selector: Selector = new Selector(this.command.query, this.options);
const slots: SelectorSlot[] = selector.getSearcherSlots();

return slots.map((slot) => {
const slotsWithoutAll = slots.filter(
(slot) => slot.analyzer.name !== "all",
);
return slotsWithoutAll.map((slot) => {
const searcher = slot.analyzer;
if (this.command.type in this.searcherMap) {
const fn = this.searcherMap[this.command.type];
Expand Down

0 comments on commit c89e48c

Please sign in to comment.