fix: escape dot char in regex

This commit is contained in:
Mohamed Sohail 2022-01-17 18:34:54 +03:00
parent 5257967f88
commit 368f297c6b
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
1 changed files with 1 additions and 1 deletions

View File

@ -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) {