Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape sequences are not allowed in template strings #16

Closed
An1984ton opened this issue Mar 24, 2022 · 2 comments · Fixed by #17
Closed

Escape sequences are not allowed in template strings #16

An1984ton opened this issue Mar 24, 2022 · 2 comments · Fixed by #17
Assignees
Labels
bug Something isn't working

Comments

@An1984ton
Copy link

Good afternoon)
If css styles have an element ::before
content: '🗸', it is converted to content:"\2714" and an error occurs
Uncaught SyntaxError: Octal escape sequences are not allowed in template strings.

@An1984ton An1984ton changed the title Error with html icons Uncaught SyntaxError: Octal escape sequences are not allowed in template strings. (Error with html icons) Mar 24, 2022
@marco-prontera marco-prontera self-assigned this Mar 24, 2022
@marco-prontera marco-prontera added the bug Something isn't working label Mar 24, 2022
@marco-prontera
Copy link
Owner

Hi @An1984ton maybe we need to add a JSON.stringify to the styleCode.
I can fix this problem, give me 2 hours and you will have the new version with the fix.

Thanks for reporting

@marco-prontera marco-prontera changed the title Uncaught SyntaxError: Octal escape sequences are not allowed in template strings. (Error with html icons) Escape sequences are not allowed in template strings Mar 24, 2022
marco-prontera added a commit that referenced this issue Mar 24, 2022
* Fix bug to escape characters

* Add prettier configs

* Add script command

* Fix bug and apply cosmetics
@marco-prontera
Copy link
Owner

@An1984ton the bug is fixed in v1.3.0 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants