mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49: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.cStats.lines++;
|
||||||
event.uStats.lines++;
|
event.uStats.lines++;
|
||||||
|
|
||||||
|
event.message = event.message.replace(/[\.,-\/#!$%\^&\*;:{}=\-_`~()]/g, "");
|
||||||
var words = event.message.split(' '),
|
var words = event.message.split(' '),
|
||||||
wCount = words.length,
|
wCount = words.length,
|
||||||
capitals = 0,
|
capitals = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user