diff options
author | Nick Coutsos <[email protected]> | 2021-10-24 22:24:41 -0400 |
---|---|---|
committer | Nick Coutsos <[email protected]> | 2021-10-24 22:24:41 -0400 |
commit | 463224e6aee1cbb9789e94b55ede11b9c98ff06e (patch) | |
tree | 266d9c5a7218ec553bb8fabe288b23f6313be8eb | |
parent | af8be4350757929555a79dcda6f9f7f0f974aa87 (diff) | |
download | keymap-editor-463224e6aee1cbb9789e94b55ede11b9c98ff06e.tar.gz keymap-editor-463224e6aee1cbb9789e94b55ede11b9c98ff06e.zip |
Fix layer naming in zmk keymap
-rw-r--r-- | api/services/zmk/keymap.js | 2 |
1 files changed, 1 insertions, 1 deletions
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} >; |