Просмотр исходного кода

fix: avoid regex s flag for old browsers

close #8316
Evan You 3 лет назад
Родитель
Сommit
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 = {}