From 7b96181f06c74f59628cb54a79a15bfdb7b71ccc Mon Sep 17 00:00:00 2001 From: cloudhead Date: Fri, 26 Feb 2010 11:28:34 -0500 Subject: [PATCH] minor optimization in element parsing --- lib/less/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/parser.js b/lib/less/parser.js index 5b21670f..d24bfc2f 100644 --- a/lib/less/parser.js +++ b/lib/less/parser.js @@ -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) } },