node-rigorous
Version:
Rigorous Framework
14 lines (12 loc) • 363 B
JavaScript
;
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");
}
};
};