mirror of
https://github.com/p-stream/providers.git
synced 2026-04-20 23:12:17 +00:00
allow numbers in variable names
This commit is contained in:
parent
a474502ca3
commit
378c99e0bd
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ function extractKey(script: string): [number, number][] | null {
|
|||
const switchBody = script.slice(startOfSwitch, endOfCases);
|
||||
|
||||
const nums: [number, number][] = [];
|
||||
const matches = switchBody.matchAll(/:[a-zA-Z]+=([a-zA-Z]+),[a-zA-Z]+=([a-zA-Z]+);/g);
|
||||
const matches = switchBody.matchAll(/:[a-zA-Z0-9]+=([a-zA-Z0-9]+),[a-zA-Z0-9]+=([a-zA-Z0-9]+);/g);
|
||||
for (const match of matches) {
|
||||
const innerNumbers: number[] = [];
|
||||
for (const varMatch of [match[1], match[2]]) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue