fix: avoid regex s flag for old browsers

close #8316
This commit is contained in:
Evan You 2023-05-17 09:23:09 +08:00
parent 003836f90e
commit 91f1c62e63
1 changed files with 1 additions and 1 deletions

View 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 = {}