Skip to content

Commit

Permalink
fix(utils): blank page issue on iphone iOS due to lookbehind regex co…
Browse files Browse the repository at this point in the history
…mpatibility
  • Loading branch information
Dave136 committed Nov 16, 2023
1 parent 6d8daac commit f412221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/css.ts
Expand Up @@ -9,7 +9,7 @@ export function cleanCss(css: string) {
.replace(/\\/g, '')
// find all css selectors and look ahead for opening and closing curly braces
.replace(SELETORS_REGEX, (m) => {
return m.replace(/(?<=.)[:#\!\-[\\\]\/\.%]+/g, '_')
return m.replace(/(.)([:#\!\-[\\\]\/\.%]+)/g, '$1_')
})
.replace(/font-family(?<value>[^;\r\n]+)/g, (m, value) => {
return `font-family${value.replace(/['"]+/g, '')}`
Expand Down

2 comments on commit f412221

@vercel
Copy link

@vercel vercel bot commented on f412221 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue-email-demo – ./packages/playground

vue-email-demo-git-main-davejs136.vercel.app
vue-email-demo.vercel.app
vue-email-demo-davejs136.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f412221 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.