Explorar el Código

fix: avoid regex s flag for old browsers

close #8316
Evan You hace 3 años
padre
commit
91f1c62e63
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 = {}