diff --git a/lib/toCamelCase.js b/lib/toCamelCase.js index 93e2fd2..fdaf141 100644 --- a/lib/toCamelCase.js +++ b/lib/toCamelCase.js @@ -4,8 +4,7 @@ module.exports = function toCamelCase (name) { if (name[0] === '@') { name = name.slice(1).replace('/', '-') } - const newName = name.replace(/-(.)/g, function (match, g1) { + return name.replace(/-(.)/g, function (match, g1) { return g1.toUpperCase() }) - return newName }