allow upper case in properties. fixes #1398

This commit is contained in:
Luke Page
2013-07-20 15:01:07 +01:00
parent bc33e6bfbe
commit fe8aabd8ff
3 changed files with 8 additions and 2 deletions

View File

@@ -1579,7 +1579,7 @@ less.Parser = function Parser(env) {
property: function () {
var name;
if (name = $(/^(\*?-?[_a-z0-9-]+)\s*:/)) {
if (name = $(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/)) {
return name[1];
}
}

View File

@@ -112,3 +112,6 @@ foo | * {
h1 {
color: green;
}
.upper-test {
UpperCaseProperties: allowed;
}

View File

@@ -111,4 +111,7 @@ foo|h1 { color: blue; }
foo|* { color: yellow; }
|h1 { color: red; }
*|h1 { color: green; }
h1 { color: green; }
h1 { color: green; }
.upper-test {
UpperCaseProperties: allowed;
}