sy-fi-validations
v1.2.0
Published
Validations made easier!
Downloads
3
Maintainers
Readme
Simple validations made easier
Validate the following:
- Email string --> Params: (email)
- Password string --> Params: (pwd) --> Rules applied: Check a password between 7 to 15 characters which contain at least one numeric digit and a special character.
- validates the length of the string --> Params: (val, len)
- Check the number of digits after decimal point --> Params: (val, len) --> Rules applied: Val is the decimal number and len is the lenth to assert with after decimal point.
- Check the number of digits before decimal point --> Params: (val, len) --> Rules applied: Val is the decimal number and len is the lenth to assert with before decimal point.