Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# 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.
- Loading branch information