form-field-isvalid

5.0.0 • Public • Published

validate form fields using regular expressions

isInitcap - every word/s first char should be in uppercase & maximum one space can be allowed within words

Example -
let validator = require("form-field-isvalid");
validator.isInitcap("Hey, How Are You?") - true
validator.isInitcap("Hey, how Are You?") - false

Readme

Keywords

Package Sidebar

Install

npm i form-field-isvalid

Weekly Downloads

15

Version

5.0.0

License

NA

Unpacked Size

1.06 kB

Total Files

3

Last publish

Collaborators

  • prchat86