This gem check if required env variables are present and its format using the .env and .env.sample files from Dotenv.
50
stars
4
forks
source link
[REQUEST] Use regexes already shipped with ruby standard library for validating emails and URLs #35
Closed
cgrothaus closed 3 years ago
Branch/Commit:
main
Describe the feature:
Suggestion: uses regexes already shipped with the ruby standard library for validating emails and URLs.
The ruby standard library already contains elaborate regexes for validation of emails and URLs:
URI::MailTo::EMAIL_REGEXP
URI::DEFAULT_PARSER.make_regexp(['http', 'https'])
These should be used instead of rolling own regexes.