/
home
/
infinitibizsol
/
.trash
/
node_modules.3
/
class-validator
/
esm5
/
decorator
/
string
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/node_modules.3/class-validator/esm5/decorator/string/IsLowercase.js
import { buildMessage, ValidateBy } from '../common/ValidateBy'; import isLowercaseValidator from 'validator/lib/isLowercase'; export var IS_LOWERCASE = 'isLowercase'; /** * Checks if the string is lowercase. * If given value is not a string, then it returns false. */ export function isLowercase(value) { return typeof value === 'string' && isLowercaseValidator(value); } /** * Checks if the string is lowercase. * If given value is not a string, then it returns false. */ export function IsLowercase(validationOptions) { return ValidateBy({ name: IS_LOWERCASE, validator: { validate: function (value, args) { return isLowercase(value); }, defaultMessage: buildMessage(function (eachPrefix) { return eachPrefix + '$property must be a lowercase string'; }, validationOptions), }, }, validationOptions); } //# sourceMappingURL=IsLowercase.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure