From 3deefdf9f1d6789af63765991899cca09ac40717 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Wed, 27 May 2015 16:53:12 -0700 Subject: [PATCH] Fix comparision of double quoted strings --- eval.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eval.cpp b/eval.cpp index 62f8fad248..595b970eef 100644 --- a/eval.cpp +++ b/eval.cpp @@ -1110,8 +1110,10 @@ namespace Sass { } break; case Expression::STRING: { - return unquote(static_cast(lhs)->value()) == - unquote(static_cast(rhs)->value()); + string slhs = static_cast(lhs)->value(); + string srhs = static_cast(rhs)->value(); + return unquote(slhs) == unquote(srhs) && + (!(is_quoted(slhs) || is_quoted(srhs)) || slhs[0] == srhs[0]); } break; case Expression::LIST: {