From dac2d2f8fe5062afc1170ad669cb3ddf1e406ffe Mon Sep 17 00:00:00 2001
From: prescientmoon <git@moonythm.dev>
Date: Tue, 13 Feb 2024 13:43:10 +0100
Subject: [PATCH] Fix numeric keys indexing enum by accident

---
 layout-lens/src/config.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/layout-lens/src/config.ts b/layout-lens/src/config.ts
index e1590a6..b42c5eb 100644
--- a/layout-lens/src/config.ts
+++ b/layout-lens/src/config.ts
@@ -25,7 +25,8 @@ export function parseConfig(input: string): Config {
     keys: (parsed.keys as string[][]).map((k) =>
       k.map((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;
       }),
     ),