Is it possible to use sanitization rule for email and only remove dots when email is gmail domain?
email: ‘normalize_email’ will always remove dots, so emails like john.doe@notgmailcom will not be correct at all
while with rule email: ‘normalize_email:!rd’ this will work but it will allow users to have multiple accounts with same email if they use gmail. Because john.doe@gmailcom is infact the same as johndoe@gmailcom and even j.o.h.n.d.o.e@gmailcom
This lib https://github.com/chriso/validator.js#sanitizers has additional config options that can handle this. Is this possible in adonis without extending validator?
btw. couldnt create topic because new users cant add more then 2 links inside topic… email were recognized as links so they are without .com