Filter out duplicate extension search flags

This commit is contained in:
Jackson Kearl 2020-02-03 11:18:59 -08:00
parent 2a8adf5b24
commit a14ad2f8b0

View file

@ -35,7 +35,7 @@ export class Query {
.map(subcommand => `@${command}:${subcommand}${subcommand === '' ? '' : ' '}`); .map(subcommand => `@${command}:${subcommand}${subcommand === '' ? '' : ' '}`);
} }
else { else {
return [`@${command} `]; return queryContains(`@${command}`) ? [] : [`@${command} `];
} }
})); }));
} }