@TomasPereira-Dev
Posted
hey, what's up!, I'm not sure 100% if this might be the problem, but try changing the regex to this one:
const regex = [-A-Za-z0-9!#$%&'*+/=?^_`{|}~]+(?:\.[-A-Za-z0-9!#$%&'*+/=?^_`{|}~]+)*@(?:[A-Za-z0-9](?:[-A-Za-z0-9]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[-A-Za-z0-9]*[A-Za-z0-9])?
I used a regex generator for this because most of the time I try to write one by myself it end up with bugs, those are a pain to be honest, lol. Good Luck!
Marked as helpful
@acabrie
Posted
Thank you@TomasPereira-Dev, I will give it a try!