-
Notifications
You must be signed in to change notification settings - Fork 94
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
Problem with multiline strings #24
Labels
Comments
ghost
assigned rspivak
Mar 16, 2012
I'll look into it. Thanks again for reporting. |
Hi David, Took me a little bit longer than I anticipated but I've just committed the code to support multiline strings: 8839a01 Could you install SlimIt from the master branch and check if it solves the issue you had. Thanks |
Closing for now |
acatton
pushed a commit
to acatton/fork--rspivak--slimit
that referenced
this issue
Jan 26, 2015
Added support for JavaScript strings written across multiple lines of code, as in: var a = "hello \ world";
metatoaster
added a commit
to metatoaster/calmjs.parse
that referenced
this issue
Apr 22, 2018
- Actually provide line continuation in strings that complies to the specification, which the fix provided by rspivak/slimit#24 was problematic (breaks position tracking) and incomplete as it amounted to no more than a clumsy workaround (come on, duplicated regex code). - Also provide the expected minified output that would strip out these line continuation fragments.
metatoaster
added a commit
to metatoaster/calmjs.parse
that referenced
this issue
Apr 22, 2018
- Actually provide line continuation in strings that complies to the specification, which the fix provided by rspivak/slimit#24 was problematic (breaks position tracking) and incomplete as it amounted to no more than a clumsy workaround (come on, duplicated regex code). - Also provide the expected minified output that would strip out these line continuation fragments.
metatoaster
added a commit
to metatoaster/calmjs.parse
that referenced
this issue
Apr 22, 2018
- Actually provide line continuation in strings that complies to the specification, which the fix provided by rspivak/slimit#24 was problematic (breaks position tracking) and incomplete as it amounted to no more than a clumsy workaround (come on, duplicated regex code). - Also provide the expected minified output that would strip out these line continuation fragments.
metatoaster
added a commit
to metatoaster/calmjs.parse
that referenced
this issue
Apr 22, 2018
- Actually provide line continuation in strings that complies to the specification, which the fix provided by rspivak/slimit#24 was problematic (breaks position tracking) and incomplete as it amounted to no more than a clumsy workaround (come on, duplicated regex code). - Also provide the expected minified output that would strip out these line continuation fragments.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, thanks for slimit! Nice tool.
Ran into a bug with multiline strings. If you provide this input:
You get this traceback:
The text was updated successfully, but these errors were encountered: