Commit graph

8 commits

Author SHA1 Message Date
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
Oleg Hasjanov
f8fcf0e456 added test 2023-08-22 15:36:11 +03:00
Sergei Tsoganov
d3bca1434c Refactored and corrected code for domain force delete 2023-05-17 16:04:40 +03:00
olegphenomenon
e3a8d9ada7 fixed issue with succesful results 2022-10-26 15:45:38 +03:00
olegphenomenon
37c6239b13 assign the limit of validation records 2022-10-24 15:52:49 +03:00
olegphenomenon
b8be4ec928 update test name 2021-12-28 13:37:40 +02:00
olegphenomenon
9268206daf added ability to validate invalid mx email by a and aaaa records 2021-12-28 13:37:40 +02:00
olegphenomenon
1845fd8aa1 added test 2021-12-27 10:26:47 +02:00