From 71bda916390f44463a0c293174a401feb2418d51 Mon Sep 17 00:00:00 2001 From: RCTrapdoor Date: Thu, 19 Jun 2014 14:21:54 +0200 Subject: [PATCH] Update regex.js Enable users to correct other users suffixing usernames with either comma or colon. --- modules/regex/regex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/regex/regex.js b/modules/regex/regex.js index 4f3ac8c..3ef4c39 100644 --- a/modules/regex/regex.js +++ b/modules/regex/regex.js @@ -3,7 +3,7 @@ var _ = require('underscore')._; var regex = function(dbot) { this.last = {}; this.listener = function(event) { - var q = event.message.valMatch(/^([\d\w\s]*)?:? ?s\/(.+)\/(.+)?\/([ig]*)?$/, 5); + var q = event.message.valMatch(/^([\d\w\s]*)?[:|,]? ?s\/(.+)\/(.+)?\/([ig]*)?$/, 5); if(q) { var flags = q[4], toMatch = new RegExp(q[2], flags),