forked from GitHub/dbot
commit
abab37b71e
@ -3,7 +3,7 @@ var _ = require('underscore')._;
|
|||||||
var regex = function(dbot) {
|
var regex = function(dbot) {
|
||||||
this.last = {};
|
this.last = {};
|
||||||
this.listener = function(event) {
|
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) {
|
if(q) {
|
||||||
var flags = q[4],
|
var flags = q[4],
|
||||||
toMatch = new RegExp(q[2], flags),
|
toMatch = new RegExp(q[2], flags),
|
||||||
|
Loading…
Reference in New Issue
Block a user