Skip to content

Commit

Permalink
feat(extractArgument): normalize space
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Poupry committed Aug 25, 2018
1 parent f8308ed commit 6745152
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export class Dispatcher {
if (!path) return

const content = message.content
.replace(/\s+/g, ' ')
.replace(prefix.name, '')
.replace(command.name, '')
.trim()
Expand Down

0 comments on commit 6745152

Please sign in to comment.