Skip to content

Commit

Permalink
fix: avoid regex s flag for old browsers
Browse files Browse the repository at this point in the history
close #8316
  • Loading branch information
yyx990803 committed May 17, 2023
1 parent 003836f commit 91f1c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/normalizeProp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 91f1c62

Please sign in to comment.