Skip to content

Commit 99b2381

Browse files
nikewucpselvis
authored andcommitted
fix: filter wrong command (#78)
1 parent 85e1633 commit 99b2381

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/core/command.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = class Command {
2424
* @returns {*}
2525
*/
2626
get(name) {
27+
if(Object.prototype.toString.call(name) !== "[object String]") return;
2728
name = name.toLowerCase();
2829
return this.store[this.alias[name]];
2930
}

0 commit comments

Comments
 (0)