diff --git a/src/helpers.ts b/src/helpers.ts index 5fc1d32..e9d94d0 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -32,7 +32,7 @@ async function setStorageValue(key: string, value: any): Promise function getUrlParameters(url: string): object { - const reg: RegExp = new RegExp('\/([A-Za-z0-9-]+?)=([A-Za-z0-9_.+]+)', 'g'); + const reg: RegExp = new RegExp('\/([A-Za-z0-9-]+?)=([A-Za-z0-9_.+-]+)', 'g'); let params: object = {}; let match: string[]; while ((match = reg.exec(url)) !== null) diff --git a/src/region.ts b/src/region.ts new file mode 100644 index 0000000..e69de29