Skip to content

Commit

Permalink
fix: filter wrong command (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikewu authored and cpselvis committed Feb 26, 2019
1 parent 85e1633 commit 99b2381
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = class Command {
* @returns {*}
*/
get(name) {
if(Object.prototype.toString.call(name) !== "[object String]") return;
name = name.toLowerCase();
return this.store[this.alias[name]];
}
Expand Down

0 comments on commit 99b2381

Please sign in to comment.