From c928a24f518c266a8b17b8b66ce48e524890ebdf Mon Sep 17 00:00:00 2001 From: lub Date: Sat, 14 Oct 2017 21:53:43 +0200 Subject: [PATCH] tidy args match --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b1774b8..218acd7 100644 --- a/index.js +++ b/index.js @@ -89,7 +89,7 @@ matrixclient.on('Room.timeline', function(event, room, resettimeline) { if(commands[project] !== undefined) { let command = commands[project]; - let args = body.match(command['regex']); + const args = body.match(command.regex); if(args === null) { matrixclient.sendNotice(room.roomId, 'usage: ' + command.usage); return;