4 ms·
I wonder whether simply (regex) replacing a sequence of .'s with a single one as part of a post-processing step would be effective.
by dumbo-octopus 3y ago
I wonder whether simply (regex) replacing a sequence of .'s with a single one as part of a post-processing step would be effective.
- layer8 3y agoThat 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.