aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/services/zmk/keymap.js
diff options
context:
space:
mode:
Diffstat (limited to 'api/services/zmk/keymap.js')
-rw-r--r--api/services/zmk/keymap.js2
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}
>;