From 91f1c62e6384a8b09f90e7e43b8d347901e529a0 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 17 May 2023 09:23:09 +0800 Subject: [PATCH] fix: avoid regex s flag for old browsers close #8316 --- packages/shared/src/normalizeProp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/src/normalizeProp.ts b/packages/shared/src/normalizeProp.ts index e6ef62a5c80..6a1dd20e393 100644 --- a/packages/shared/src/normalizeProp.ts +++ b/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 = {}