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

spaces within backtick strings are left out in some circumstances #37

Open
louking opened this issue Apr 23, 2022 · 1 comment
Open

Comments

@louking
Copy link

louking commented Apr 23, 2022

e.g.,

d3.selectAll(`#${that.options.statstable.containerid} table`).style("display", null);

is compressed to

d3.selectAll(`#${that.options.statstable.containerid}table`).style("display",null);

Note the missing space between } and table

@tikitu
Copy link
Owner

tikitu commented Apr 25, 2022

The current version does not promise to support backtick strings. You might get success by using the quote_chars parameter, but it's not explicitly supported; in particular there aren't robust tests for the various things that can appear inside the string. I no longer maintain jsmin to keep up with changes to javascript's syntax.

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

No branches or pull requests

2 participants