Compare commits

...

2 Commits

Author SHA1 Message Date
05e441f6a1
release: v0.2.3 2022-01-17 18:35:09 +03:00
368f297c6b
fix: escape dot char in regex 2022-01-17 18:34:54 +03:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "ussd-tg-proxy",
"version": "0.2.2",
"version": "0.2.3",
"description": "ussd-tg-proxy",
"main": "src/index.js",
"repository": "https://git.grassecon.net/grassrootseconomics/ussd-tg-proxy.git",

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