Skip to content

Commit

Permalink
Merge pull request #53 from pirelaurent/trimBlanks
Browse files Browse the repository at this point in the history
trim user's sentence
  • Loading branch information
kirsle committed Dec 22, 2015
2 parents 5d2435b + 9acf053 commit 557c922
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/brain.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,9 @@ class Brain
else
# For everything else, strip all non-alphanumerics
msg = utils.stripNasties(msg, @utf8)


# cut leading and trailing blanks once punctuation dropped office
msg = msg.trim()
return msg

##
Expand Down

0 comments on commit 557c922

Please sign in to comment.