minor optimization in element parsing

This commit is contained in:
cloudhead 2010-02-26 11:28:34 -05:00
parent 2dea90afb7
commit 7b96181f06

View File

@ -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) }
},