3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

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";
}
message = message.replace(/(#\w+)/g, '\u000312$1\u000f');
message = message.replace(/(#[\w\-]+)/g, '\u000312$1\u000f');
_.each(message.match(/ @([\d\w*|-]+)/g), function(u) {
u = u.substr(1);