1(function (document, $) { 2 "use strict"; 3 let regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; 4 5 $(document).on("click", ".cq-dialog-submit", function(e) { 6 let a = $('#councilEmail').val(); 7 if (a && !regex.test(a)) { 8 $('.email-error').remove(); 9 $('#councilEmail').after("<span style='color:#e14132' class='email-error'>Please provide correct email id</span>"); 10 $('#councilEmail').addClass('is-invalid'); 11 return false; 12 13 } else { 14 $('#councilEmail').removeClass('is-invalid'); 15 $('.email-error').remove(); 16 } 17 }); 18 19 $(document).on("blur", "#councilPhone", function (e) { 20 let p = $('#councilPhone').val(); 21 var x = p.replace(/\D/g, '').match(/(\d{3})(\d{3})(\d{4})/); 22 $('#councilPhone').val(x[1] + '-' + x[2] + '-' + x[3]); 23}); 24 25 26})(document, Granite.$);
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.