From 0d7ec6bb70ae48336a054feb8d393d9715f78b83 Mon Sep 17 00:00:00 2001 From: Matthew Dean Date: Sun, 8 Oct 2017 18:43:10 -0700 Subject: [PATCH] Change API on less object to lowercase --- lib/less/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/less/index.js b/lib/less/index.js index 62403bd0..bc3562ee 100644 --- a/lib/less/index.js +++ b/lib/less/index.js @@ -40,13 +40,13 @@ module.exports = function(environment, fileManagers) { /* eslint guard-for-in: 0 */ t = initial.tree[n]; if (typeof t === "function") { - api[n] = ctor(t); + api[n.toLowerCase()] = ctor(t); } else { api[n] = Object.create(null); for (var o in t) { /* eslint guard-for-in: 0 */ - api[n][o] = ctor(t[o]); + api[n][o.toLowerCase()] = ctor(t[o]); } } }