Fix : RegEx based split in tipbot.ts
This commit is contained in:
parent
28cb36b5d5
commit
a2596f0e93
1 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ exports.tip = {
|
|||
let tipper = msg.author.id,
|
||||
words = msg.content
|
||||
.trim()
|
||||
.split(' ')
|
||||
.split(/ +/)
|
||||
.filter(function(n) {
|
||||
return n !== '';
|
||||
}),
|
||||
|
@ -68,7 +68,7 @@ exports.multitip = {
|
|||
let tipper = msg.author.id.replace('!', ''),
|
||||
words = msg.content
|
||||
.trim()
|
||||
.split(' ')
|
||||
.split(/ +/)
|
||||
.filter(function(n) {
|
||||
return n !== '';
|
||||
}),
|
||||
|
@ -93,7 +93,7 @@ exports.roletip = {
|
|||
let tipper = msg.author.id.replace('!', ''),
|
||||
words = msg.content
|
||||
.trim()
|
||||
.split(' ')
|
||||
.split(/ +/)
|
||||
.filter(function(n) {
|
||||
return n !== '';
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue