fix: escape dot in quoted-local-part of email regex - #56
Conversation
The unescaped '.' before (".+") acted as a wildcard instead of
a literal dot, causing incorrect email validation for quoted
local parts.
Fixes issue SignalizeAI#55.
|
Welcome, @Jah-yee, and thanks for your first pull request to SignalizeAI-Website. A quick look at CONTRIBUTING.md covers how things are set up and run here. I'll review this shortly. Ask anything in the thread if something is unclear. |
|
Nice catch @Jah-yee, and welcome! The unescaped Merging. If you found this interesting, a star on the repo is always appreciated, and there are more open issues if you want another. |
|
This is in, @Jah-yee. Really appreciate it. Contributions like this are what keep SignalizeAI-Website moving. A star on the repo would mean a lot if this project is useful to you. Happy to see more from you whenever you have the time. |
Problem
The email validation regex in
src/utils/validateEmail.tshas an unescaped dot:The
.before(".+")is unescaped, acting as a wildcard character instead of a literal dot in the email's quoted-local-part.Fix
Changed
.(".+")→\.(".+")to properly escape the dot.Testing
The regex now correctly handles quoted local parts like
"test."@example.com.Fixes issue #55.