output strings in attribute selectors properly

This commit is contained in:
cloudhead 2010-03-04 16:13:48 -05:00
parent 7e3d8bda32
commit b4f3e9029c

View File

@ -370,7 +370,7 @@ less.parser = {
if (key = $(/[a-z]+/g) || $(this.entities.string)) {
if ((op = $(/[|~*$^]?=/g)) &&
(val = $(this.entities.string) || $(/[\w-]+/g))) {
attr = [key, op, val].join('');
attr = [key, op, val.toCSS ? val.toCSS() : val].join('');
} else { attr = key }
}