modify key command
This commit is contained in:
1 parent
8b75f41d55
commit
5755b465cb
2 files changed
+69
-3
No files matched your search
@@ -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