From 6e24d255763cf502ea3a487372eec36003555e8f Mon Sep 17 00:00:00 2001 From: Peter Makra <6892971+mcraa@users.noreply.github.com> Date: Fri, 23 Dec 2022 14:46:31 +0100 Subject: [PATCH] fixed ext2fs regex --- webpack.config.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/webpack.config.ts b/webpack.config.ts index 59776e7d..167cbe69 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -92,10 +92,9 @@ function findExt2fsFolder(): string { function makeExt2FsRegex(): RegExp { const folder = findExt2fsFolder(); - const libpath = '/lib/libext2fs\\.js&'; + const libpath = '/lib/libext2fs\\.js$'; - const regex = folder.concat(libpath).split('/').join('/'); - return new RegExp(regex); + return new RegExp(folder.concat(libpath)); } function findUsbPrebuild(): string[] { @@ -173,7 +172,6 @@ function slashOrAntislash(pattern: RegExp): RegExp { } function replace(test: RegExp, ...replacements: ReplacementRule[]) { - console.log(test.source); return { loader: 'string-replace-loader', // Handle windows path separators @@ -416,8 +414,6 @@ const guiConfigCopyPatterns = [ }, ]; -console.log(guiConfigCopyPatterns); - if (os.platform() === 'win32') { // liblzma.dll is required on Windows for lzma-native guiConfigCopyPatterns.push({