PageSourceSearch

https://www.cryptojobs.com/assets/common/js/jqueryValidation/custom-additional-methods.js?v=1755002560

js cryptojobs.com collected 2026-09-25 19:19:49 UTC 1,728 bytes, 34 lines download raw bytes

1jQuery.validator.addMethod("password_validation", function(value, element) {
2    return /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[\[\]#?!@$%^{}<>_=,.`~)(&*-]).{8,}$/.test(value);
3}, "At least a digit, an uppercase, lowercase letter, a special character, min 8 characters");
4
5jQuery.validator.addMethod("email", function(value, element, param) {
6    return /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(value);
7}, "Invalid format.");
8
9jQuery.validator.addMethod("domain", function(value, element, param) {
10    const emailAddress = value.split('@').pop();
11    let domain = ($(param).val()!=='') ? (new URL($(param).val())).hostname.replace('www.','') : '';
12    return (emailAddress == domain && domain !== '')
13
14}, "Email must be a same as your website domain");
15
16$.validator.addMethod('filesize', function (value, element, param) {
17    return this.optional(element) || (element.files[0].size <= param * 1000000)
18}, 'File size must be less than {0} MB');
19
20$.validator.addMethod("linkedinProfile", function(value, element) {
21    // Regular expression for a LinkedIn profile URL
22    var regex = /^(https?:\/\/)?(www\.)?linkedin\.com\/in\/[a-zA-Z0-9_-]+\/?$/;
23    return this.optional(element) || regex.test(value);
24}, "Please enter a valid LinkedIn profile URL.");
25
26$.validator.addMethod("githubProfile", function(value, element) {
27    // Regular expression for GitHub profile link
28    var regex = /^(https?:\/\/)?(www\.)?github\.com\/[a-zA-Z0-9_-]+(\/?)$/;
29    return this.optional(element) || regex.test(value);
30}, "Please enter a valid GitHub profile link.");
31
32$.validator.addMethod("notZero", function (value, element) {
33    return this.optional(element) || value != 0;
34}, "This field cannot be zero.");

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.