[Pkg-javascript-commits] [less.js] 06/25: Issue #2127, selectors matching function ignored * selector.
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:23:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v1.7.5
in repository less.js.
commit 62eb799b400fa54517690e5ad59205d2a556478c
Author: jurcovicovam <meri at meri.org>
Date: Tue Jul 29 15:36:24 2014 +0200
Issue #2127, selectors matching function ignored * selector.
---
lib/less/tree/selector.js | 2 +-
test/css/mixins.css | 3 +++
test/less/mixins.less | 1 +
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/less/tree/selector.js b/lib/less/tree/selector.js
index f38934e..afe7fb1 100644
--- a/lib/less/tree/selector.js
+++ b/lib/less/tree/selector.js
@@ -73,7 +73,7 @@ tree.Selector.prototype = {
css += v.value.value;
}
- this._elements = css.match(/[,&#\.\w-]([\w-]|(\\.))*/g);
+ this._elements = css.match(/[,&#\*\.\w-]([\w-]|(\\.))*/g);
if (this._elements) {
if (this._elements[0] === "&") {
diff --git a/test/css/mixins.css b/test/css/mixins.css
index 32097f9..4d9824f 100644
--- a/test/css/mixins.css
+++ b/test/css/mixins.css
@@ -7,6 +7,9 @@
.borders {
border-style: dashed;
}
+.mixin > * {
+ border: do not match me;
+}
#namespace .borders {
border-style: dotted;
}
diff --git a/test/less/mixins.less b/test/less/mixins.less
index b98836c..b1a83c6 100644
--- a/test/less/mixins.less
+++ b/test/less/mixins.less
@@ -1,6 +1,7 @@
.mixin { border: 1px solid black; }
.mixout { border-color: orange; }
.borders { border-style: dashed; }
+.mixin > * { border: do not match me; }
#namespace {
.borders {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list