Skip to content

Commit

Permalink
interpolated mixins, fixed: possible false match if variable contain…
Browse files Browse the repository at this point in the history
…s `,`
  • Loading branch information
seven-phases-max committed Dec 17, 2013
1 parent 002d6db commit 2ad97c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/less/tree/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2ad97c9

Please sign in to comment.