🐛 fix: added windows support

pull/16/head
alexzrp 2021-09-21 17:53:08 -03:00
parent 2ab3909bae
commit 7a5a8843e3
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ module.exports = {
let fileConfigs = {}; let fileConfigs = {};
await Promise.all(configFiles.map(async (file) => { await Promise.all(configFiles.map(async (file) => {
const type = file.split('.')[0]; // Grab the first part of the filename. const type = file.split('.')[0].replace('##', '::'); // Grab the first part of the filename.
const name = file.split(/\.(.+)/)[1].split('.').slice(0, -1).join('.').replace('##', '::'); // Grab the rest of the filename minus the file extension. const name = file.split(/\.(.+)/)[1].split('.').slice(0, -1).join('.').replace('##', '::'); // Grab the rest of the filename minus the file extension.
if ( if (