3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-24 04:49:25 +01:00

strip punctuation

This commit is contained in:
reality 2013-10-20 18:49:19 +00:00
parent c56c7d2664
commit f217289e9d

View File

@ -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,