1( function ( $ ) { 2 $( function () { 3 $( document ).on( 'submit', '.sendy-subscribe-form', function () { 4 var email_id = $(this).find( '.subscriber-email' ).val(); 5 var filter = /^\s*[\w\-\+_]+(\.[\w\-\+_]+)*\@[\w\-\+_]+\.[\w\-\+_]+(\.[\w\-\+_]+)*\s*$/; 6 console.log(email_id); 7 valid = String( email_id ).search( filter ) != -1; 8 9 if ( !valid ) { 10 11 alert( 'Please enter a valid email address' ); 12 13 return false; 14 } else { 15 return true; 16 } 17 18 19 } ) 20 21 } ) 22} )( 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.