Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Escape special template literal sequences#2

Open
m1cr0man wants to merge 1 commit intonativew:mainfrom
m1cr0man:sanitise
Open

Escape special template literal sequences#2
m1cr0man wants to merge 1 commit intonativew:mainfrom
m1cr0man:sanitise

Conversation

@m1cr0man
Copy link

Having a ` or backslash in the injected CSS would cause compilation failures in ts/js due to unescaped sequences. This regex simply escapes these. e.g. @tailwindcss/typography uses both of these things

Having a ` or backslash in the injected CSS would cause
compilation failures in ts/js due to unescaped sequences.
This regex simply escapes these. e.g. tailwindcss/typography
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant