13 lines
357 B
JavaScript
13 lines
357 B
JavaScript
// - Import react component
|
|
import { storageRef } from 'app/firebase/'
|
|
|
|
//- Import actions
|
|
|
|
const isValidEmail = (email) => {
|
|
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
return re.test(email)
|
|
}
|
|
|
|
export default {
|
|
isValidEmail
|
|
} |