From 8608168946ebf26cf05d61048270bd92e976a580 Mon Sep 17 00:00:00 2001 From: Hugo Campos Date: Mon, 6 Feb 2017 13:40:22 +0100 Subject: [PATCH] fix(@ngtools/webpack): one star replacement should be preceded by slash --- packages/@ngtools/webpack/src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@ngtools/webpack/src/plugin.ts b/packages/@ngtools/webpack/src/plugin.ts index 249f61326376..86b280642bc9 100644 --- a/packages/@ngtools/webpack/src/plugin.ts +++ b/packages/@ngtools/webpack/src/plugin.ts @@ -127,7 +127,7 @@ export class AotPlugin implements Tapable { // Two stars replacement. .replace(/\*\*/g, '(?:.*)') // One star replacement. - .replace(/\*/g, '(?:[^/]*)') + .replace(/\/\*/g, '(?:[^/]*)') // Escape characters from the basePath and make sure it's forward slashes. .replace(/^/, basePathPattern);