Better sanatization of menu/prompt.hjson files based on board name

This commit is contained in:
Bryan Ashby 2018-11-13 19:40:48 -07:00
parent 308f09b291
commit c1f7eb05ca
1 changed files with 1 additions and 1 deletions

View File

@ -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'),