From b9fd279b9a6c64a10fff6028e0663e4def3f3243 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 12 Jul 2021 19:51:29 -0600 Subject: [PATCH] ??? --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 373e14f..4050cf9 100644 --- a/main.js +++ b/main.js @@ -366,7 +366,7 @@ client.login("m.login.password", {"user": settings.matrixuser, "password": setti } return; } - const matches = room.name.match(/SMS_([1-9][0-9]+)_?([1-9][0-9]+)?/); + const matches = room.name.match(/SMS_([1-9][0-9]+)_?([1-9][0-9]+)?/g); if (matches.length == 1) { var tel = matches[0]; logger.info("Got message for " + tel + " from " + event.getSender() + ", relaying.");