mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 17:55:59 +00:00
execute query
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user