mirror of
https://github.com/less/less.js.git
synced 2026-01-21 21:27:59 -05:00
allow upper case in properties. fixes #1398
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,3 +112,6 @@ foo | * {
|
||||
h1 {
|
||||
color: green;
|
||||
}
|
||||
.upper-test {
|
||||
UpperCaseProperties: allowed;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user