1var esig_validation = { 2 is_email: function (email_address) { 3 var filter = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; 4 if (filter.test(email_address)) { 5 return true; 6 } else { 7 return false; 8 } 9 }, 10 is_string: function (input_string) { 11 12 // check string is not empty 13 if (input_string === "") { 14 return false; 15 } 16 // check string is not empty 17 if (!input_string) { 18 return false; 19 } 20 // check string is not undefined and not null 21 if(typeof(input_string) === "undefined" && input_string === null) 22 { 23 return false; 24 } 25 26 // Regex to check valid HTML tag. 27 const regexPattern = new RegExp("<(\"[^\"]*\"|'[^']*'|[^'\">])*>") ; 28 // check string for html tags. 29 if (regexPattern.test(input_string)) 30 { 31 // no html 32 return false; 33 } 34 35 return true; 36 }, 37 is_fullName: function (value) { 38 // check for double spaces. 39 if (/\s{2}/.test(value)) return false; 40 // Emoji validation 41 const regexExpEmoji = /(©|®|[â-ã]|\ud83c[í-\udfff]|\ud83d[í-\udfff]|\ud83e[í-\udfff])/gi; 42 if (regexExpEmoji.test(value)) return false; 43 // name validation: allow letters (incl. accented), hyphens, apostrophes, periods, commas, and spaces 44 const regexp = new RegExp(/^[^_!¡?÷?¿\\+=@#$%Ë*{}|~<>;:[\]]([-'.,]?[^_!¡?÷?¿\\+=@#$%Ë*{}|~<>;:[\]]+)*( [^_!¡?÷?¿\\+=@#$%Ë*{}|~<>;:[\]]([-'.,]?[^_!¡?÷?¿\\+=@#$%Ë*{}|~<>;:[\]]+)*)*$/i); 45 return regexp.test(value); 46 47 }, 48}; 49 50 51(function ($) { 52 53 $.validator.addMethod("esiglegalname", function (value, element) { 54 55 const japanesRegex = /[ã-ã¿]|[ã-ã]|[ã -ã¿]|[ï¼-￯]|[ä¸-龯]|[â -â]|[â-â]|â»/g; 56 57 if(japanesRegex.test(value)) { 58 return this.optional(element) || japanesRegex.test(value); 59 } 60 61 // check for double spaces 62 if (/\s{2}/.test(value)) return false; 63 64 // emoji validation 65 const regexExpEmoji = /(©|®|[â-ã]|\ud83c[í-\udfff]|\ud83d[í-\udfff]|\ud83e[í-\udfff])/gi; 66 if (regexExpEmoji.test(value)) return false; 67 68 // name validation: allow letters (incl. accented), hyphens, apostrophes, periods, commas, and spaces 69 const regexp = new RegExp(/^[^_!¡?÷?¿\\+=@#$%Ë*{}|~<>;:[\]]([-'.,]?[^_!¡?÷?¿\\+=@#$%Ë*{}|~<>;:[\]]+)*( [^_!¡?÷?¿\\+=@#$%Ë*{}|~<>;:[\]]([-'.,]?[^_!¡?÷?¿\\+=@#$%Ë*{}|~<>;:[\]]+)*)*$/i); 70 return this.optional(element) || regexp.test(value); 71 72 }, "A valid name is required to sign this document"); 73 74})(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.