Skip to content

Commit 91f1c62

Browse files
committed
fix: avoid regex s flag for old browsers
close #8316
1 parent 003836f commit 91f1c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/src/normalizeProp.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function normalizeStyle(
2828

2929
const listDelimiterRE = /;(?![^(]*\))/g
3030
const propertyDelimiterRE = /:([^]+)/
31-
const styleCommentRE = /\/\*.*?\*\//gs
31+
const styleCommentRE = /\/\*[^]*?\*\//g
3232

3333
export function parseStringStyle(cssText: string): NormalizedStyle {
3434
const ret: NormalizedStyle = {}

0 commit comments

Comments
 (0)