PageSourceSearch

https://www.iaopa.eu/javascript/jquery-scripts/formValidator.2.2.1/js/languages/jquery.validationEngine-en.js

js iaopa.eu collected 2026-10-02 17:51:33 UTC 11,671 bytes, 173 lines download raw bytes

1(function($){
2    $.fn.validationEngineLanguage = function(){
3    };
4    $.validationEngineLanguage = {
5        newLang: function(){
6            $.validationEngineLanguage.allRules = {
7                "required": { // Add your regex rules here, you can take telephone as an example
8                    "regex": "none",
9                    "alertText": "* This field is required",
10                    "alertTextCheckboxMultiple": "* Please select an option",
11                    "alertTextCheckboxe": "* This checkbox is required",
12                    "alertTextDateRange": "* Both date range fields are required"
13                },
14                "dateRange": {
15                    "regex": "none",
16                    "alertText": "* Invalid ",
17                    "alertText2": "Date Range"
18                },
19                "dateTimeRange": {
20                    "regex": "none",
21                    "alertText": "* Invalid ",
22                    "alertText2": "Date Time Range"
23                },
24                "minSize": {
25                    "regex": "none",
26                    "alertText": "* Minimum ",
27                    "alertText2": " characters allowed"
28                },
29                "maxSize": {
30                    "regex": "none",
31                    "alertText": "* Maximum ",
32                    "alertText2": " characters allowed"
33                },
34				"groupRequired": {
35                    "regex": "none",
36                    "alertText": "* You must fill one of the following fields"
37                },
38                "min": {
39                    "regex": "none",
40                    "alertText": "* Minimum value is "
41                },
42                "max": {
43                    "regex": "none",
44                    "alertText": "* Maximum value is "
45                },
46                "past": {
47                    "regex": "none",
48                    "alertText": "* Date prior to "
49                },
50                "future": {
51                    "regex": "none",
52                    "alertText": "* Date past "
53                },	
54                "maxCheckbox": {
55                    "regex": "none",
56                    "alertText": "* Maximum ",
57                    "alertText2": " options allowed"
58                },
59                "minCheckbox": {
60                    "regex": "none",
61                    "alertText": "* Please select ",
62                    "alertText2": " options"
63                },
64                "equals": {
65                    "regex": "none",
66                    "alertText": "* Fields do not match"
67                },
68                "phone": {
69                    // credit: jquery.h5validate.js / orefalo
70                    "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
71                    "alertText": "* Invalid phone number"
72                },
73                "email": {
74                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
75                    "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
76                    "alertText": "* Invalid email address"
77                },
78                "emailnewsletter": {
79                    // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
80                    "regex": /^(((\w|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.(\w|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@(((\w|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|((\w|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])(\w|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*(\w|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+((\w|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|((\w|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])(\w|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*(\w|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$|^(-)$/i,
81                    "alertText": "* Invalid email address"
82                },
83
84                "integer": {
85                    "regex": /^[\-\+]?\d+$/,
86                    "alertText": "* Not a valid integer"
87                },
88                "number": {
89                    // Number, including positive, negative, and floating decimal. credit: orefalo
90                    "regex": /^[\-\+]?(([0-9]+)([\.,]([0-9]+))?|([\.,]([0-9]+))?)$/,
91                    "alertText": "* Invalid floating decimal number"
92                },
93                "date": {
94                    "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
95                    "alertText": "* Invalid date, must be in YYYY-MM-DD format"
96                },
97                "ipv4": {
98                    "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
99                    "alertText": "* Invalid IP address"
100                },
101                "url": {
102                    "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
103                    "alertText": "* Invalid URL"
104                },
105                "onlyNumberSp": {
106                    "regex": /^[0-9\ ]+$/,
107                    "alertText": "* Numbers only"
108                },
109                "onlyLetterSp": {
110                    "regex": /^[a-zA-Z\ \']+$/,
111                    "alertText": "* Letters only"
112                },
113                "onlyLetterNumber": {
114                    "regex": /^[0-9a-zA-Z]+$/,
115                    "alertText": "* No special characters allowed"
116                },
117                // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
118                "ajaxUserCall": {
119                    "url": "ajaxValidateFieldUser",
120                    // you may want to pass extra data on the aja
120x call
121                    "extraData": "name=eric",
122                    "alertText": "* This user is already taken",
123                    "alertTextLoad": "* Validating, please wait"
124                },
125				"ajaxUserCallPhp": {
126                    "url": "phpajax/ajaxValidateFieldUser.php",
127                    // you may want to pass extra data on the ajax call
128                    "extraData": "name=eric",
129                    // if you provide an "alertTextOk", it will show as a green prompt when the field validates
130                    "alertTextOk": "* This username is available",
131                    "alertText": "* This user is already taken",
132                    "alertTextLoad": "* Validating, please wait"
133                },
134                "ajaxNameCall": {
135                    // remote json service location
136                    "url": "ajaxValidateFieldName",
137                    // error
138                    "alertText": "* This name is already taken",
139                    // if you provide an "alertTextOk", it will show as a green prompt when the field validates
140                    "alertTextOk": "* This name is available",
141                    // speaks by itself
142                    "alertTextLoad": "* Validating, please wait"
143                },
144				 "ajaxNameCallPhp": {
145	                    // remote json service location
146	                    "url": "phpajax/ajaxValidateFieldName.php",
147	                    // error
148	                    "alertText": "* This name is already taken",
149	                    // speaks by itself
150	                    "alertTextLoad": "* Validating, please wait"
151	                },
152                "validate2fields": {
153                    "alertText": "* Please input HELLO"
154                },
155	            //tls warning:homegrown not fielded 
156                "dateFormat":{
157                    "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/,
158                    "alertText": "* Invalid Date"
159                },
160                //tls warning:homegrown not fielded 
161				"dateTimeFormat": {
162	                "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,
163                    "alertText": "* Invalid Date or Date Format",
164                    "alertText2": "Expected Format: ",
165                    "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM or ", 
166                    "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM"
167	            }
168            };
169            
170        }
171    };
172    $.validationEngineLanguage.newLang();
173})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.