1function validateEmail(email, element) { 2 var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; 3 if (!emailReg.test(email)) { 4 $(element).removeClass('valid'); 5 $(element).addClass('error'); 6 return false; 7 } else { 8 $(element).removeClass('error'); 9 $(element).addClass('valid'); 10 return true; 11 } 12}
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.