support uppercase characters in attribute

This commit is contained in:
cloudhead
2010-07-25 16:51:19 -04:00
parent 334f224d7e
commit da62bf3eb4

View File

@@ -814,7 +814,7 @@ less.Parser = function Parser(env) {
if (! $('[')) return;
if (key = $(/^[a-z-]+/) || $(this.entities.quoted)) {
if (key = $(/^[a-zA-Z-]+/) || $(this.entities.quoted)) {
if ((op = $(/^[|~*$^]?=/)) &&
(val = $(this.entities.quoted) || $(/^[\w-]+/))) {
attr = [key, op, val.toCSS ? val.toCSS() : val].join('');