]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix: avoid regex s flag for old browsers
authorEvan You <yyx990803@gmail.com>
Wed, 17 May 2023 01:23:09 +0000 (09:23 +0800)
committerEvan You <yyx990803@gmail.com>
Wed, 17 May 2023 01:23:09 +0000 (09:23 +0800)
close #8316

packages/shared/src/normalizeProp.ts

index e6ef62a5c80401cd8aa70ca719a32987941ec535..6a1dd20e3933bd697dcfb2666581af8f53c157c0 100644 (file)
@@ -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 = {}