modify key command
This commit is contained in:
@@ -75,7 +75,7 @@ const parseCMD = async (text = '', source = {}) => {
|
||||
for (let i of obj) {
|
||||
txt += (txt.length > 0 ? '|' : '') + i.key
|
||||
}
|
||||
regex = new RegExp(`(${txt})`)
|
||||
regex = new RegExp(`^(${txt})$`)
|
||||
console.log(regex)
|
||||
let m = text.match(regex)
|
||||
console.log('match :::: ', m)
|
||||
|
||||
Reference in New Issue
Block a user