-
Notifications
You must be signed in to change notification settings - Fork 4
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
Multiline error #2
Comments
So should it remove the /? Luis Majano On Sunday, April 15, 2012 at 1:20 AM, Don Quist wrote:
|
That would be nice, and I would prefer it that way - but it could also break some things that rely on parsing strings by new lines... |
So what could be the solutions? Luis Majano ColdBox Platform: http://www.coldbox.org On Apr 18, 2012, at 3:15 AM, Don [email protected] wrote:
|
You need to include the latest from Douglas Crockford's original C implementation that the Java port is based off of. |
Is this still an issue? |
JSMin will fail on strings like so:
var foo = ' bar
these
are \
new lines';
A test case (and how I came across this issue) was trying to minify this library: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
Tried both the packages (minified / dev) with the same result - Though manually editing the library and concatenating all the \ instances fixes it, but that's not ideal.
The error is correctly thrown on line 189 of JSMin.java
Maybe if JSMin can't fix this by itself, have it include the js file without trying to minify it?
The text was updated successfully, but these errors were encountered: