From ac2f7bbccd1bb8aad2d76c876e2a4d59fd5bb68e Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 24 Mar 2015 19:26:41 +0000 Subject: [PATCH] fix regex examples --- modules/words/words.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/words/words.js b/modules/words/words.js index 1a1cac5..678b4d1 100644 --- a/modules/words/words.js +++ b/modules/words/words.js @@ -114,6 +114,7 @@ var words = function(dbot) { this.listener = function(event) { var matchOne = event.message.match(new RegExp(dbot.config.name + ': should (\\w+) (.+) or (.*)\\?', 'i')); + event.reply(matchOne); if(matchOne) { var pre = match[1]; if(pre == 'i' || pre == 'I') {