Skip to content

Commit

Permalink
fix(length): command name.length can be >= 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Poupry committed Nov 18, 2018
1 parent 8d44747 commit 1b864dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Registry<C extends Command> {

assert(command instanceof Command, `${name} should be instance of Command`)
assert(typeof action === 'function', '.action should be a function')
assert(name.length >= 3, 'name length should be >= 3')
assert(name.length >= 2, 'name length should be >= 2')

if (aliases.length >= 1) {
aliases.forEach(a =>
Expand Down

0 comments on commit 1b864dd

Please sign in to comment.