handle empty property values

This commit is contained in:
cloudhead
2010-02-26 14:48:32 -05:00
parent 78ae5285d6
commit 0c00a9c8ac

View File

@@ -381,7 +381,7 @@ less.parser = {
if (name = $(this.property) || $(this.entities.variable, true)) {
if ((name[0] != '@') && (match =
peek(/((?:[\s\w."']|-[a-z])+|[^@+\/*(-;}]+)[;}][\s\n]*/g))) {
peek(/((?:[\s\w."']|-[a-z])+|[^@+\/*(;{}-]*)[;][\s\n]*/g))) {
i += match[0].length;
return new(node.Rule)(name, match[1]);
}