Last active
September 11, 2015 02:59
-
-
Save jonas8/5cc85248f13694dcd828 to your computer and use it in GitHub Desktop.
validationEngineLanguage.allRules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.validationEngineLanguage.allRules = { | |
| "required": { | |
| "regex": "none", | |
| "alertText": "* This field is required", | |
| "alertTextCheckboxMultiple": "* Please select an option", | |
| "alertTextCheckboxe": "* This checkbox is required" | |
| }, | |
| "length": { | |
| "regex": "none", | |
| "alertText": "*Between ", | |
| "alertText2": " and ", | |
| "alertText3": " characters allowed" | |
| }, | |
| "minCheckbox": { | |
| "regex": "none", | |
| "alertText": "* Checks allowed Exceeded" | |
| }, | |
| "confirm": { | |
| "regex": "none", | |
| "alertText": "* Your field is not matching" | |
| }, | |
| "telephone": { | |
| "regex": "/^[0-9\-\(\)\ ]+$/", | |
| "alertText": "* Invalid phone number" | |
| }, | |
| "email": { | |
| "regex": "/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\\.)+[a-zA-Z0-9]{2,4}$/", | |
| "alertText": "* Invalid email address" | |
| }, | |
| "date": { | |
| "regex": "/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/", | |
| "alertText": "* Invalid date, must be in YYYY-MM-DD format" | |
| }, | |
| "onlyNumber": { | |
| "regex": "/^[0-9\ ]+$/", | |
| "alertText": "* Numbers only" | |
| }, | |
| "noSpecialCaracters": { | |
| "regex": "/^[0-9a-zA-Z]+$/", | |
| "alertText": "* No special caracters allowed" | |
| }, | |
| "ajaxUser": { | |
| "file": "validateUser.php", | |
| "alertTextOk": "* This user is available", | |
| "alertTextLoad": "* Loading, please wait", | |
| "alertText": "* This user is already taken" | |
| }, | |
| "ajaxName": { | |
| "file": "validateUser.php", | |
| "alertText": "* This name is already taken", | |
| "alertTextOk": "* This name is available", | |
| "alertTextLoad": "* Loading, please wait" | |
| }, | |
| "onlyLetter": { | |
| "regex": "/^[a-zA-Z\ \']+$/", | |
| "alertText": "* Letters only" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment