Skip to content

Commit

Permalink
Update format.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tclindner committed Jun 29, 2019
1 parent 5876755 commit 256b50d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/validators/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const semver = require('semver');
* @return {boolean} True if the string is lowercase or is missing. False if it is not.
*/
const isLowercase = name => {
if (typeof name === 'undefined') {
return true;
}

return name === name.toLowerCase();
};

Expand Down

0 comments on commit 256b50d

Please sign in to comment.