mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
strip punctuation
This commit is contained in:
parent
c56c7d2664
commit
f217289e9d
@ -77,6 +77,7 @@ var sstats = function(dbot) {
|
||||
event.cStats.lines++;
|
||||
event.uStats.lines++;
|
||||
|
||||
event.message = event.message.replace(/[\.,-\/#!$%\^&\*;:{}=\-_`~()]/g, "");
|
||||
var words = event.message.split(' '),
|
||||
wCount = words.length,
|
||||
capitals = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user