publicstatic isValid(obj: any): boolean {if(obj.post_id && !validator.isInt(obj.post_id))returnfalse;if(!obj.post_date || !moment(obj.post_date,"MMM DD, YYYY").isValid())returnfalse;if(!obj.post_status || !validator.isIn(obj.post_status, ["Enabled","Disabled"]))returnfalse;if...
29 Cron schedule Recommended PCRE (PHP <7.3) Validate cron lines (even the ones commented out) Submitted byanonymous-8 years ago Strict Password Validator ECMAScript (JavaScript) This regex matches only when all the following are true: password must contain 1 number (0-9) password must contain...
I would like to cast my vote for this feature too. I do not see a way to override the MVC validator for these situations. I want to have a friendly error set up if someone passes a string that does not match or an int that does not exist. ...