From 6020351e8461c93a448e6a74670c367844e4c235 Mon Sep 17 00:00:00 2001 From: Florian Imdahl Date: Wed, 11 Aug 2021 15:43:19 +0200 Subject: [PATCH] fix: Replace all occurences of "*" in ignored entries --- src/BuildService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BuildService.ts b/src/BuildService.ts index 9141ebee..5f30aebc 100644 --- a/src/BuildService.ts +++ b/src/BuildService.ts @@ -28,7 +28,7 @@ export class BuildService { this.logger.state = {isEnabled: options.verbose}; this.entries = []; this.ignoreEntries = this.options.ignoreEntries.map(entry => - entry instanceof RegExp ? entry : new RegExp(entry.replace('*', '.*')) + entry instanceof RegExp ? entry : new RegExp(entry.replaceAll('*', '.*')) ); this.outputFile = this.options.outputEntry ? path.resolve(this.options.outputEntry) : null; this.progressBar = new progress('Compressing [:bar] :percent :elapseds', {