PageSourceSearch

https://www.pipelinepub.com/static/pipelinepub/js/other-validations.m55oe8.js

js pipelinepub.com collected 2026-10-03 21:19:11 UTC 1,844 bytes, 42 lines download raw bytes

1/*
2 This file contains validations that are too specific to be part of the core
3 Please reference the file AFTER the translation file or the rules will be overwritten
4 Use at your own risk. We can't provide support for most of the validations
5*/
6(function($){
7	if($.validationEngineLanguage == undefined || $.validationEngineLanguage.allRules == undefined )
8		alert("Please include other-validations.js AFTER the translation file");
9	else {
10		$.validationEngineLanguage.allRules["postcodeUK"] = {
11		        // UK zip codes
12		        "regex": /^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$/,
13				"alertText": "* Invalid postcode"
14		};
15		$.validationEngineLanguage.allRules["postcodeUS"] = {
16		        // US zip codes | Accepts 12345 and 12345-1234 format zipcodes
17                "regex": /^\d{5}(-\d{4})?$/,
18                "alertText": "* Invalid zipcode"
19		};
20		$.validationEngineLanguage.allRules["postcodeDE"] = {
21		        // Germany zip codes | Accepts 12345 format zipcodes
22                "regex": /^\d{5}?$/,
23                "alertText": "* Invalid zipcode"
24		};
25		$.validationEngineLanguage.allRules["postcodeAT"] = {
26		        // Austrian zip codes | Accepts 1234 format zipcodes
27                "regex": /^\d{4}?$/,
28                "alertText": "* Invalid zipcode"
29		};
30    $.validationEngineLanguage.allRules["postcodeJP"] = {
31      // JP zip codes | Accepts 123 and 123-1234 format zipcodes
32      "regex": /^\d{3}(-\d{4})?$/,
33      "alertText": "* 郵便番号が正しくありません"
34    };
35		$.validationEngineLanguage.allRules["onlyLetNumSpec"] = {
36				// Good for database fields
37				"regex": /^[0-9a-zA-Z_-]+$/,
38				"alertText": "* Only Letters, Numbers, hyphen(-) and underscore(_) allowed"
39		};
40	//	# more validations may be added after this point
41	}
42})(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.