fastruby / dotenv_validator

This gem check if required env variables are present and its format using the .env and .env.sample files from Dotenv.
https://www.fastruby.io/blog/open-source/introducing-dotenv-validator.html
MIT License
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

cgrothaus commented 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:

These should be used instead of rolling own regexes.