Skip to content

Commit

Permalink
fix(shared-integration): getCssEscaperForJsContent replace conflict (u…
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 authored May 13, 2024
1 parent f7669af commit dd0139b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared-integration/src/layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function getCssEscaperForJsContent(view: string) {
// 111 2222222
const escapeViewRe = /(\\*)\\(["'`\\])/g
view.trim().replace(escapeViewRe, (_, bs, char) => {
prefix[char] = bs
prefix[char] = bs.replace(/\\\\/g, '\\')
return ''
})
return (css: string) => css.replace(/["'`\\]/g, (v) => {
Expand Down

0 comments on commit dd0139b

Please sign in to comment.