From 33c50671e63950b4935c790aab83bd763588fb44 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 24 Mar 2015 19:23:02 +0000 Subject: [PATCH] fix regex examples --- modules/words/words.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/words/words.js b/modules/words/words.js index eb03f0d..1a1cac5 100644 --- a/modules/words/words.js +++ b/modules/words/words.js @@ -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') {