forked from GitHub/dbot
Update regex.js
Enable users to correct other users suffixing usernames with either comma or colon.
This commit is contained in:
parent
c50975672e
commit
71bda91639
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user