forked from GitHub/dbot
fix regex examples
This commit is contained in:
parent
4d50f1eff2
commit
33c50671e6
@ -113,7 +113,7 @@ var words = function(dbot) {
|
|||||||
|
|
||||||
this.listener = function(event) {
|
this.listener = function(event) {
|
||||||
var matchOne = event.message.match(new RegExp(dbot.config.name +
|
var matchOne = event.message.match(new RegExp(dbot.config.name +
|
||||||
': should (\w+) (.+) or (.*)\?', 'i'));
|
': should (\\w+) (.+) or (.*)\\?', 'i'));
|
||||||
if(matchOne) {
|
if(matchOne) {
|
||||||
var pre = match[1];
|
var pre = match[1];
|
||||||
if(pre == 'i' || pre == 'I') {
|
if(pre == 'i' || pre == 'I') {
|
||||||
|
Loading…
Reference in New Issue
Block a user