Commit graph

23 commits

Author SHA1 Message Date
oleghasjanov
54aefe4a2c update regex 2025-03-10 15:13:09 +02:00
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
olegphenomenon
021d8eebc6 changed truemail logs configs 2022-11-29 11:38:53 +02:00
Sergei Tsõganov
2061a5562e Updated truemail initializer 2022-10-12 10:58:10 +03:00
Sergei Tsõganov
532b9039d2 Modified files after rebase 2022-10-12 10:44:15 +03:00
olegphenomenon
e129128a2a changed regex condition for punicodes 2021-12-27 14:31:51 +02:00
olegphenomenon
956f95ac98 update truemail config 2021-12-27 13:05:42 +02:00
olegphenomenon
ef933b0106 changed regex truemail config 2021-12-27 12:58:06 +02:00
olegphenomenon
1ec79afb11 updated time of response from truemail 2021-12-17 10:50:08 +02:00
Alex Sherman
a92c1dfb74 Quickfix truemail init file 2020-10-08 12:34:10 +05:00
Alex Sherman
87fe230035 Add default email validation type to application.yml 2020-09-07 16:12:47 +05:00
Alex Sherman
87f586587e Fix truemail log storage 2020-07-17 17:01:16 +05:00
Alex Sherman
d4f49e6556 Revert "Introduce log_dir env variable for truemail and require it with figaro."
This reverts commit 76eed1ef08.
2020-07-17 16:58:42 +05:00
Georg Kahest
76eed1ef08 Introduce log_dir env variable for truemail and require it with figaro.
Use log_dir in truemail initializer.
2020-07-17 16:44:31 +05:00
Alex Sherman
481bb34e67 Hotfix truemail log storage 2020-07-17 16:36:44 +05:00
Alex Sherman
600541c4a1 Add truemail logging 2020-07-17 15:22:59 +05:00
Alex Sherman
e4a02c2e47 Return truemail
This reverts commit 862f5639ebbe4d3e6abd5d5be7fb7840e7b83bdf.
2020-07-17 15:22:49 +05:00
Alex Sherman
0a7b754c4c Add email description to epp responce on contact creation 2020-07-17 15:21:02 +05:00
Timo Võhmar
6900ce1127
Revert "297 email address validation truemail" 2020-07-10 16:16:00 +03:00
Alex Sherman
b4369bdcd0 Add support of punycode domains in emails 2020-07-08 17:10:44 +05:00
Alex Sherman
e56162f37d Add registrar email validation 2020-07-08 17:05:24 +05:00
Alex Sherman
ba4e256662 Add test domains whitelist & fix tests 2020-07-08 17:05:24 +05:00
Alex Sherman
2d89e8124f Add gem Truemail
Closes #
2020-07-08 17:05:24 +05:00