internetee-registry/config/initializers
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
..
airbrake.rb Return truemail 2020-07-17 15:22:49 +05:00
apipie.rb REPP: Update ApiDoc 2021-01-21 11:29:00 +02:00
application_controller_renderer.rb Upgrade to Rails 5.0 2019-11-15 15:26:33 +02:00
arel.rb Updated REPP API for new registrar portal 2022-07-12 15:47:25 +03:00
assets.rb Remove precompiled assets due to segfaults 2020-06-04 15:14:12 +03:00
aws_ses.rb BouncedMailAddress: Remove from AWS suppression list upon destroy 2021-02-08 16:52:31 +02:00
backtrace_silencers.rb rails new 2014-06-10 11:43:04 +03:00
company_register.rb Extract company register 2019-03-15 17:33:07 +02:00
content_security_policy.rb Binaries / New configs from Rails 5.2 app:update 2020-04-15 09:19:43 +03:00
cookies_serializer.rb Upgrade to Rails 5.0 2019-11-15 15:26:33 +02:00
devise.rb Make Registrant/Registrar use same TARA controller 2020-10-01 18:37:04 +03:00
e_invoice.rb Add balance auto reload 2019-06-14 16:30:34 +03:00
figaro.rb Revert "Introduce log_dir env variable for truemail and require it with figaro." 2020-07-17 16:58:42 +05:00
filter_parameter_logging.rb Resolve issue with possible freezes on nil raw_frame 2021-01-28 14:52:48 +05:00
inflections.rb Extract company register 2019-03-15 17:33:07 +02:00
kaminari.rb Improve readability 2019-11-02 15:41:14 +02:00
libs.rb Fix deprecated email_notification usage in tests 2021-10-07 16:18:02 +05:00
load_schemas.rb updated schemas 2021-09-08 13:52:28 +03:00
mime_types.rb rails new 2014-06-10 11:43:04 +03:00
money.rb Raise ruby version to 2.5.7, raise some gem versions 2020-02-05 12:43:25 +05:00
monkey_patches.rb Hash: select entries by keys 2021-01-11 14:32:10 +02:00
new_framework_defaults.rb Pump iso8601 gem version 2020-02-05 12:43:25 +05:00
new_framework_defaults_5_1.rb Pump rails version, fix tests 2020-02-05 12:43:25 +05:00
new_framework_defaults_5_2.rb Binaries / New configs from Rails 5.2 app:update 2020-04-15 09:19:43 +03:00
new_framework_defaults_6_0.rb Disable collection cache versioning 2020-07-07 15:04:22 +03:00
omniauth.rb Updated REPP API for new registrar portal 2022-07-12 15:47:25 +03:00
ransack.rb Updated REPP API for new registrar portal 2022-07-12 15:47:25 +03:00
session_store.rb Registry 633 (#635) 2017-11-09 13:58:24 +02:00
sidekiq.rb updated logs sidekiq handling 2025-02-03 14:08:50 +02:00
strong_migrations.rb Added indexes to log_domains table 2022-12-07 11:22:42 +02:00
truemail.rb # Improve email validation regex pattern and add comprehensive tests 2025-03-10 14:24:02 +02:00
wrap_parameters.rb Upgrade to Rails 5.0 2019-11-15 15:26:33 +02:00