-
Notifications
You must be signed in to change notification settings - Fork 218
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
RegExp.$1
breaks file
#162
Labels
bug
Something isn't working
Comments
Would this be potentially why I am seeing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following line in the utility module 'plugins/utils/update.ts' doesn't take into account any cases where
$n
might exist within the the file for example when using RegExp.$1 and outputs invalid syntax.A potential fix would be to escaping any dollar signs within the printedNextNode
printedNextNode.replace(/\$/g, '$$$$')
The text was updated successfully, but these errors were encountered: