-
Notifications
You must be signed in to change notification settings - Fork 465
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
Regression: String functions #988
Comments
I already have this on my radar and a proper fix will need some more re-factoring, as it will cause another spec-test to fail otherwise. Altough I have a hotfix which I probably will include in 3.2. in functions.cpp line 945 - return new (ctx.mem) String_Constant(pstate, newstr);
+ if (newstr == "\"\"") new (ctx.mem) String_Constant(pstate, newstr);
+ return new (ctx.mem) String_Quoted(pstate, newstr); |
@mgreter Great, thanks. That's exactly where it's choking, on |
If you can, please test with PR #989 applied and report if it fixes your issues! Thanks! |
I'm not entirely sure if I'm able to do that on pure Libsass :\ I compile through |
node-sass
3.0.0-beta which gives me access to Libsass 3.2.0-beta.2 and I've discovered a regression: In Libsass 3.1, Thisstr-replace
function works without a hitch. I believe it may be related to #987, but this particular function worked in 3.1 and no longer works in 3.2:Original Output
**Regressed Output in Libsass 3.2
How should I go about writing a test to catch this? It's not Sass function, but it's a regression that should be tested for.
The text was updated successfully, but these errors were encountered: