mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 01:14:30 +08:00
Use Rails's email regex
This commit is contained in:
parent
5b917768a7
commit
d0b86de3a4
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ class Constants
|
|||
].freeze
|
||||
|
||||
# Very basic regex to check for validity of emails
|
||||
BASIC_EMAIL_REGEX = /^[^@]+@[^@]+\.[^@]+$/
|
||||
BASIC_EMAIL_REGEX = URI::MailTo::EMAIL_REGEXP
|
||||
|
||||
# Organization name for default admin user
|
||||
DEFAULT_PRIVATE_ORG_NAME = 'My projects'.freeze
|
||||
|
|
Loading…
Reference in a new issue