Better sanatization of menu/prompt.hjson files based on board name
This commit is contained in:
parent
308f09b291
commit
c1f7eb05ca
|
@ -257,7 +257,7 @@ function buildNewConfig() {
|
|||
return;
|
||||
}
|
||||
|
||||
const bn = sanatizeFilename(config.general.boardName).replace(/ /g, '_').toLowerCase();
|
||||
const bn = sanatizeFilename(config.general.boardName).replace(/[^a-z0-9_\-]/ig, '_').toLowerCase();
|
||||
const menuFile = `${bn}.hjson`;
|
||||
copyFileSyncSilent(
|
||||
paths.join(__dirname, '../../config/menu.hjson'),
|
||||
|
|
Loading…
Reference in New Issue