cahilfoley/utils

View on GitHub
src/internal/patterns/emailAddress.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const emailPattern = /^(([^<>()[\]\\.,;:\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,}))$/

export default emailPattern