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

Escape special template literal sequences #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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