From 463224e6aee1cbb9789e94b55ede11b9c98ff06e Mon Sep 17 00:00:00 2001 From: Nick Coutsos Date: Sun, 24 Oct 2021 22:24:41 -0400 Subject: Fix layer naming in zmk keymap --- api/services/zmk/keymap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/zmk/keymap.js b/api/services/zmk/keymap.js index 011f486..a8837ea 100644 --- a/api/services/zmk/keymap.js +++ b/api/services/zmk/keymap.js @@ -108,7 +108,7 @@ function generateKeymapCode (layout, keymap, encoded) { }) return ` - ${name} { + ${name.replace(/[^a-zA-Z0-9_]/g, '_')} { bindings = < ${rendered} >; -- cgit v1.2.3