Skip to content

Commit

Permalink
fixed ext2fs regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraa committed Dec 23, 2022
1 parent b59b171 commit 6e24d25
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -416,8 +414,6 @@ const guiConfigCopyPatterns = [
},
];

console.log(guiConfigCopyPatterns);

if (os.platform() === 'win32') {
// liblzma.dll is required on Windows for lzma-native
guiConfigCopyPatterns.push({
Expand Down

0 comments on commit 6e24d25

Please sign in to comment.