How to use the isLowercase function from validator

Find comprehensive JavaScript validator.isLowercase code examples handpicked from public code repositorys.

86
87
88
89
90
91
92
93
94
95
  }
  return true;
},
isLowercase: function(rule, value) {
  if (rule) {
    return validator.isLowercase(value);
  }
  return true;
},
isUppercase: function(rule, value) {
fork icon0
star icon2
watch icon2

+ 5 other calls in file

9
10
11
12
13
14
15
16
17
18
const isLowercase = (packageJsonData, nodeName) => {
  if (!packageJsonData.hasOwnProperty(nodeName)) {
    return true;
  }

  return validator.isLowercase(packageJsonData[nodeName]);
};

/**
 * Determines whether or not the node's value is a valid semantic version
fork icon33
star icon0
watch icon2