include - in #hashtag

This commit is contained in:
reality 2014-07-21 08:56:57 +00:00
parent 776bd6d7d6
commit ba393020b2

View File

@ -32,7 +32,7 @@ var report = function(dbot) {
channel + "\u000f"; channel + "\u000f";
} }
message = message.replace(/(#\w+)/g, '\u000312$1\u000f'); message = message.replace(/(#[\w\-]+)/g, '\u000312$1\u000f');
_.each(message.match(/ @([\d\w*|-]+)/g), function(u) { _.each(message.match(/ @([\d\w*|-]+)/g), function(u) {
u = u.substr(1); u = u.substr(1);