From 368f297c6b02076d13b6ba60676dbd41929b8107 Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Mon, 17 Jan 2022 18:34:54 +0300 Subject: [PATCH] fix: escape dot char in regex --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 60677ac..a6d2a20 100644 --- a/src/util.js +++ b/src/util.js @@ -1,5 +1,5 @@ // this regex extracts ussd reply options -const regex = /\s(\d{1,2}).\s/g; +const regex = /\s(\d{1,2})\.\s/g; // TODO: converts the text to a telegram keyboard function createKeyboard(input) {