Module: ConfigCenter::GeneralValidations
- Defined in:
- lib/rails/generators/humdrum/setup/templates/config/initializers/config_center.rb
Constant Summary collapse
- EMAIL_FORMAT_REG_EXP =
[email protected] format
/^(|(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6})$/i
- MOBILE_FORMAT_REG_EXP =
xxx-xxx-xxxx format
/^([0-9\(\)\/\+ \-]){3}-([0-9\(\)\/\+ \-]){3}-([0-9\(\)\/\+ \-]){4}$/i
- PHONE_FORMAT_REG_EXP =
xxx-xxx-xxxx format
/^([0-9\(\)\/\+ \-]){3}-([0-9\(\)\/\+ \-]){3}-([0-9\(\)\/\+ \-]){4}$/i
- NAME_MIN_LEN =
Generic Name a to z (both upper and lower case), 1 to 9, space and curly brackets “(” & “)” allowed.
2
- NAME_MAX_LEN =
56
- NAME_FORMAT_REG_EXP =
/^[a-zA-Z1-9\-\ \(\)+]*$/i
- USERNAME_MIN_LEN =
User Name Minimum length is 6 by default and maximum length is 32 by default Only characters (both upper and lowercase), numbers, dot(.), underscore (_) No spaces, hyphen or any other special characters are allowed
6
- USERNAME_MAX_LEN =
32
- USERNAME_FORMAT_REG_EXP =
/^[a-zA-Z0-9\.\_+]*$/i
- PASSWORD_MIN_LEN =
Password should have atleast 1 Character (a to z (both upper and lower case)) and 1 Number (1 to 9) and 1 Special Character from (!,@,$,&,*,_)“,
8
- PASSWORD_MAX_LEN =
128
- PASSWORD_FORMAT_REG_EXP =
/^(?=.*?[a-z][A-Z])(?=.*?\d)(?=.*?[!@$&*_])/i