We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f93d91 + 0939984 commit efd7b76Copy full SHA for efd7b76
ast.cpp
@@ -668,12 +668,15 @@ namespace Sass {
668
bool nominator = true;
669
while (true) {
670
r = u.find_first_of("*/", l);
671
- string unit(u.substr(l, r - l));
+ string unit(u.substr(l, r == string::npos ? r : r - l));
672
if (nominator) numerator_units_.push_back(unit);
673
else denominator_units_.push_back(unit);
674
- if (u[r] == '/') nominator = false;
675
if (r == string::npos) break;
676
- else l = r + 1;
+ // ToDo: should error for multiple slashes
+ // if (!nominator && u[r] == '/') error(...)
677
+ if (u[r] == '/')
678
+ nominator = false;
679
+ l = r + 1;
680
}
681
682
concrete_type(NUMBER);
0 commit comments