execute query

This commit is contained in:
Jan Prochazka
2021-03-07 20:25:04 +01:00
parent f4fe5b9b53
commit 97a27381f2
4 changed files with 38 additions and 3 deletions

View File

@@ -13,7 +13,14 @@
const commandsValue = get(commands);
const command: any = Object.values(commandsValue).find(
(x: any) => x.enabled && x.keyText && x.keyText.toLowerCase() == keyText.toLowerCase()
(x: any) =>
x.enabled &&
x.keyText &&
x.keyText
.toLowerCase()
.split('|')
.map(x => x.trim())
.includes(keyText.toLowerCase())
);
if (command) {