mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
handle capitalized alpha()
This commit is contained in:
@@ -185,7 +185,7 @@ less.parser = {
|
||||
|
||||
if (! (name = $(/([a-zA-Z0-9_-]+)\(/g))) return;
|
||||
|
||||
if (name[1] === 'alpha') { return $(this.alpha) }
|
||||
if (name[1].toLowerCase() === 'alpha') { return $(this.alpha) }
|
||||
|
||||
args = $(this.entities.arguments);
|
||||
|
||||
@@ -302,7 +302,7 @@ less.parser = {
|
||||
alpha: function alpha() {
|
||||
var value;
|
||||
|
||||
if (! $(/opacity=/g)) return;
|
||||
if (! $(/opacity=/gi)) return;
|
||||
if (value = $(/[0-9]+/g) || $(this.entities.variable)) {
|
||||
if (! $(')')) throw new(Error)("missing closing ) for alpha()");
|
||||
return new(node.Alpha)(value);
|
||||
|
||||
Reference in New Issue
Block a user