Permalink
Browse files

fix(ShadowCss): fix perf regression (#11420)

fixes #11371
  • Loading branch information...
vicb authored and evmar committed Sep 7, 2016
1 parent 9e2ec7a commit 78ad9adc1a0c39a642a9a012d692ac24c825afda
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/@angular/compiler/src/shadow_css.ts
@@ -484,11 +484,11 @@ function stripComments(input: string): string {
}
// all comments except inline source mapping ("/* #sourceMappingURL= ... */")
-const _sourceMappingUrlRe = /[\s\S]*(\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\/)\s*$/;
+const _sourceMappingUrlRe = /\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//;
function extractSourceMappingUrl(input: string): string {
const matcher = input.match(_sourceMappingUrlRe);
- return matcher ? matcher[1] : '';
+ return matcher ? matcher[0] : '';
}
const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;

0 comments on commit 78ad9ad

Please sign in to comment.