Comments (6)
It's odd though, in line 152 and in line 288 it looks like it does have support for these strings: in fact it seems to be treating them as any other string. Perhaps the issue is in the next
function when it removes comments?
from jsmin.
I'm seeing the same problem, just came looking for this here.
d3.select(`.tablerow-${year} .date`).text(`${formatDate(d.date)}/${year}`);
d3.select(`.tablerow-${year} .count`).text(d.count);
is getting translated to
d3.select(`.tablerow-${year}.date`).text(`${formatDate(d.date)}/${year}`);d3.select(`.tablerow-${year}.count`).text(d.count);
Note the spaces missing before .date
and .count
in the two statements
from jsmin.
Are you using the lastest (2019-10-30)?
JSMIN treats '' exactly the same as '"'. It will get confused if you nest '
' inside of '${}' expressions, but humans do too, so I don't recommend doing that.
Have a happier 2022.
from jsmin.
In the code that I encountered, only part of it was under my control - the rest in a proprietary WordPress plugin. You can't always choose how the code looks, or what semantics it uses.
from jsmin.
It seems that you are using a version of JSMIN from the time before backtick was added to JavaScript.
from jsmin.
@TimeClicky You might want to take it from here... (since I don't work for timeclick anymore....)
from jsmin.
Related Issues (18)
- Unterminated Regular Expression Error except when comment on next line HOT 4
- Unrecognized Regex Literals HOT 1
- Feedback on License comments HOT 2
- c++ streambuf implementation HOT 1
- Any way to optimize Firefox JS files? HOT 3
- Regular expression literal can have its whitespace removed HOT 5
- Broken link on documentation site HOT 2
- JSmin removed spaces after literals in strings. HOT 14
- use_2to3 is invalid HOT 2
- Can we tag a release? HOT 1
- Over eager removal of whitespace HOT 4
- Preserve important comments e.g. copyright/ license information HOT 1
- JSMin gives error when parsing a specific string HOT 2
- Linefeeds in Javascript Strings HOT 1
- Licensing issues HOT 5
- Regex: / /g seems to be replaced by //g HOT 1
- Unary Plus operator (+) to convert boolean to number, preceded by addition operator causes JS syntax error HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsmin.