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

fix regex examples

This commit is contained in:
reality 2015-03-24 19:23:02 +00:00
parent 4d50f1eff2
commit 33c50671e6

View File

@ -113,7 +113,7 @@ var words = function(dbot) {
this.listener = function(event) {
var matchOne = event.message.match(new RegExp(dbot.config.name +
': should (\w+) (.+) or (.*)\?', 'i'));
': should (\\w+) (.+) or (.*)\\?', 'i'));
if(matchOne) {
var pre = match[1];
if(pre == 'i' || pre == 'I') {