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.
1 parent 2847edc commit e45cd20Copy full SHA for e45cd20
src/ast.cpp
@@ -703,7 +703,12 @@ namespace Sass {
703
bool Pseudo_Selector::operator< (const Pseudo_Selector& rhs) const
704
{
705
if (is_ns_eq(ns(), rhs.ns()) && name() == rhs.name())
706
- { return *(expression()) < *(rhs.expression()); }
+ {
707
+ String_Obj lhs_ex = expression();
708
+ String_Obj rhs_ex = rhs.expression();
709
+ if (rhs_ex && lhs_ex) return *lhs_ex < *rhs_ex;
710
+ else return lhs_ex < rhs_ex;
711
+ }
712
if (is_ns_eq(ns(), rhs.ns()))
713
{ return name() < rhs.name(); }
714
return ns() < rhs.ns();
0 commit comments