UNPKG

node-rigorous

Version:
12 lines (9 loc) 305 B
const helperFormatChecker = require('./format_checker'); module.exports = () => { return { validator: (v) => { return !helperFormatChecker.isNil(v) && helperFormatChecker.isFirstLetterCapitalized(v); }, message: props => `${props.value} is not a name`, }; };