From 8d6e6f3051bd0ad3586aed2770846a21c89839b5 Mon Sep 17 00:00:00 2001 From: Alex Swan Date: Wed, 23 Sep 2015 13:40:49 +0100 Subject: [PATCH] Fix for positional argument not being case sensitive. --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index bf558115..2484bc81 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -42,7 +42,7 @@ module.exports.is_object = function(obj) { module.exports.validate_metadata = function(object, name) { assert(module.exports.is_object(object), 'not a json object') - assert.equal(object.name, name) + assert.equal(object.name.toLowerCase(), name.toLowerCase()) if (!module.exports.is_object(object['dist-tags'])) { object['dist-tags'] = {}