diff --git a/lib/colors.js b/lib/colors.js index d0f174e..44c3868 100644 --- a/lib/colors.js +++ b/lib/colors.js @@ -345,11 +345,11 @@ exports.ccolors = { Object.keys(exports.ccolors).forEach(function(name) { exports.ccolors[name].forEach(function(offset) { if (typeof offset === 'number') { - cols[offset] = exports.colorNames[name]; + exports.ccolors[offset] = exports.colorNames[name]; return; } var i = offset[0], l = offset[2]; - for (; i <= l; i++) cols[i] = exports.colorNames[name]; + for (; i <= l; i++) exports.ccolors[i] = exports.colorNames[name]; }); delete exports.ccolors[name]; });