Преглед изворни кода

fix: avoid regex s flag for old browsers

close #8316
Evan You пре 3 година
родитељ
комит
91f1c62e63
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/shared/src/normalizeProp.ts

+ 1 - 1
packages/shared/src/normalizeProp.ts

@@ -28,7 +28,7 @@ export function normalizeStyle(
 
 const listDelimiterRE = /;(?![^(]*\))/g
 const propertyDelimiterRE = /:([^]+)/
-const styleCommentRE = /\/\*.*?\*\//gs
+const styleCommentRE = /\/\*[^]*?\*\//g
 
 export function parseStringStyle(cssText: string): NormalizedStyle {
   const ret: NormalizedStyle = {}