mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 04:51:33 +00:00
Merge pull request #3512 from overleaf/jpa-cleanup-email-regex
[misc] EmailHelper: remove an unreachable group from the email regex GitOrigin-RevId: 9b5f77e54cffd72220c0c2047032ba4ff0f9dece
This commit is contained in:
parent
864a75c284
commit
32f133dd41
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
// eslint-disable-next-line no-useless-escape
|
||||
const EMAIL_REGEXP = /^(([^<>()[\]\\.,;:\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,}))$/
|
||||
const EMAIL_REGEXP = /^([^<>()[\]\\.,;:\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,}))$/
|
||||
|
||||
function getDomain(email) {
|
||||
email = parseEmail(email)
|
||||
|
|
Loading…
Reference in a new issue