interpolated mixins, fixed: possible false match if variable contains ,

This commit is contained in:
seven-phases-max
2013-10-31 01:36:25 +04:00
parent 002d6db966
commit 2ad97c96c7

View File

@@ -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) {