UNPKG

node-rigorous

Version:
14 lines (12 loc) 363 B
"use strict"; var helperFormatChecker = require('./h_format_checker'); module.exports = function () { return { validator: function validator(v) { return !helperFormatChecker.isNil(v) && helperFormatChecker.isFirstLetterCapitalized(v); }, message: function message(props) { return "".concat(props.value, " is not a name"); } }; };