internetee-registry/config
oleghasjanov f866b549b5 # Improve email validation regex pattern and add comprehensive tests
This commit updates the email validation pattern in Truemail configuration to better handle various email format edge cases. The changes include:
Refine email regex pattern in config/initializers/truemail.rb to properly validate:
RFC compliant local parts with allowed special characters
Proper domain name formatting
Prevention of consecutive dots in both local part and domain
Leading and trailing dots in local part
Add comprehensive test cases in test/interactions/email_check_test.rb to verify:
Valid email formats like standard addresses, underscore usage, and dot-atom formats
Invalid email formats including consecutive dots, leading/trailing dots, and invalid characters
These changes ensure our email validation is more RFC-compliant while still being strict enough to catch common errors. The test suite now explicitly validates both positive and negative test cases for email format validation.
2025-03-10 14:24:02 +02:00
..
environments Move throttling feature from gem back to the app 2022-10-28 14:00:18 +03:00
initializers # Improve email validation regex pattern and add comprehensive tests 2025-03-10 14:24:02 +02:00
locales Fix ProcessClientHold tests and implementation 2025-03-06 15:18:16 +02:00
application.rb Corrected test errors 2023-03-16 12:32:02 +02:00
application.yml.sample Added birthday ident verification 2025-01-27 16:26:20 +02:00
boot.rb Use require_relative where possible 2020-05-29 16:28:57 +03:00
cable.yml added demo env to registry 2021-12-13 15:08:37 +02:00
credentials.yml.enc added encoder for billing request 2022-05-11 11:17:47 +03:00
database.yml.sample added demo env to registry 2021-12-13 15:08:37 +02:00
database_development.yml.sample added demo env to registry 2021-12-13 15:08:37 +02:00
database_registrant.yml.sample added demo env to registry 2021-12-13 15:08:37 +02:00
database_travis.yml added demo env to registry 2021-12-13 15:08:37 +02:00
deploy.rb.sample Remove legacy que 2022-04-06 11:20:27 +03:00
environment.rb Upgrade to Rails 5.0 2019-11-15 15:26:33 +02:00
newrelic.yml Merge pull request #2238 from internetee/add-new-demo-env 2021-12-29 17:06:43 +02:00
puma.rb Pump rails version, fix tests 2020-02-05 12:43:25 +05:00
routes.rb Modified identification request webhook 2024-11-14 08:37:09 +02:00
schedule.rb updated tests 2022-02-09 15:15:08 +02:00
secrets.yml added demo env to registry 2021-12-13 15:08:37 +02:00
sidekiq.yml Increase sidekiq concurrency 2021-04-12 17:22:36 +05:00
spring.rb Pump rails version, fix tests 2020-02-05 12:43:25 +05:00
storage.yml Binaries / New configs from Rails 5.2 app:update 2020-04-15 09:19:43 +03:00