My regexp
var EMAIL_REGEXP = /^[\w.+\-!?/:#$%&*();|<>]{3,}@[a-z0-9]+\.[a-z0-9]+(\.?[a-z0-9]+)*$/g;
But when i test in console on some text like "mail@mail.ru"
it return true for first test()
call and false for second test()
call.
I think that is en browser error? but nodejs work the same.
How can i fix it and why it is happening?