From 2ad97c96c745efc400d14c2a5acaf380b3209ddd Mon Sep 17 00:00:00 2001 From: seven-phases-max Date: Thu, 31 Oct 2013 01:36:25 +0400 Subject: [PATCH] interpolated mixins, fixed: possible false match if variable contains `,` --- lib/less/tree/selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/tree/selector.js b/lib/less/tree/selector.js index 5153a8b83..36d77b0f2 100644 --- a/lib/less/tree/selector.js +++ b/lib/less/tree/selector.js @@ -36,7 +36,7 @@ tree.Selector.prototype = { oelements = other.elements.map( function(v) { return v.combinator.value + (v.value.value || v.value); - }).join("").match(/[&#\.\w-]([\w-]|(\\.))*/g); + }).join("").match(/[,&#\.\w-]([\w-]|(\\.))*/g); // ^ regexp could be more simple but see test/less/css-escapes.less:17, doh! if (!oelements) {