Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wonder whether simply (regex) replacing a sequence of .'s with a single one as part of a post-processing step would be effective.


That would be bad form, IMO. The user may have typed john..kennedy@example.com by mistake instead of john.f.kennedy@example.com, and now you’ll be sending their email to john.kennedy@example.com. Similar for leading or trailing dots. You can’t just decide what a user probably meant, when they type in something invalid.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: