The function returns true if email is matched the following pattern: /\S+@\S+.\S+/, otherwise - false.
true
/\S+@\S+.\S+/
false