mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-07 05:05:26 +02:00
Better sanatization of menu/prompt.hjson files based on board name
This commit is contained in:
parent
308f09b291
commit
c1f7eb05ca
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ function buildNewConfig() {
|
||||||
return;
|
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`;
|
const menuFile = `${bn}.hjson`;
|
||||||
copyFileSyncSilent(
|
copyFileSyncSilent(
|
||||||
paths.join(__dirname, '../../config/menu.hjson'),
|
paths.join(__dirname, '../../config/menu.hjson'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue