Fix numeric keys indexing enum by accident
This commit is contained in:
parent
2fe9cc1e83
commit
dac2d2f8fe
|
@ -25,7 +25,8 @@ export function parseConfig(input: string): Config {
|
||||||
keys: (parsed.keys as string[][]).map((k) =>
|
keys: (parsed.keys as string[][]).map((k) =>
|
||||||
k.map((s) => {
|
k.map((s) => {
|
||||||
const special = SpecialSymbols[s];
|
const special = SpecialSymbols[s];
|
||||||
if (special === undefined) return s;
|
const isNumber = String(parseInt(s)) == s;
|
||||||
|
if (isNumber || special === undefined) return s;
|
||||||
return special as SpecialSymbols;
|
return special as SpecialSymbols;
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue