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

Feat/better escape #197

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Feat/better escape #197

merged 2 commits into from
Oct 14, 2024

Conversation

ieow
Copy link
Contributor

@ieow ieow commented Oct 14, 2024

There might be nested or edge combination that failed previous escape
.replace(/\$\{(.*?)\}/g, '\\$\\{$1\\}')
replacing with simpler strategy that prevents the compiled string from expecting a variable
.replace(/\$/g, '\\$')

This might fix the issue #182

Copy link
Owner

@inokawa inokawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@inokawa inokawa merged commit d26d920 into inokawa:main Oct 14, 2024
1 check passed
@inokawa
Copy link
Owner

inokawa commented Oct 14, 2024

0.12.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants