mirror of
https://github.com/less/less.js.git
synced 2026-01-23 22:27:57 -05:00
minor optimization in element parsing
This commit is contained in:
@@ -323,7 +323,7 @@ less.parser = {
|
||||
var e, t;
|
||||
|
||||
c = $(this.combinator);
|
||||
e = $(/[.#:]?[a-zA-Z0-9_-]+/g) || $('*') || $(this.attribute) || $(/\(.*?\)/g);
|
||||
e = $(/[.#:]?[a-zA-Z0-9_-]+/g) || $('*') || $(this.attribute) || $(/\([^)]*\)/g);
|
||||
|
||||
if (e) { return new(node.Element)(c, e) }
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user