diff --git a/modules/@angular/compiler/src/shadow_css.ts b/modules/@angular/compiler/src/shadow_css.ts index d8b4cb5304..6d29a69711 100644 --- a/modules/@angular/compiler/src/shadow_css.ts +++ b/modules/@angular/compiler/src/shadow_css.ts @@ -483,7 +483,7 @@ function stripComments(input: string): string { return StringWrapper.replaceAllMapped(input, _commentRe, (_: any /** TODO #9100 */) => ''); } -// all comments except inline source mapping ("/* #sourceMappingURL= ... */") +// all comments except inline source mapping const _sourceMappingUrlRe = /\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//; function extractSourceMappingUrl(input: string): string {