Uh oh!
There was an error while loading. Please reload this page.
add valid_tlds option for isFQDN, isURL and isEmail - #1297
Conversation
profnandaa
commented
May 25, 2020
You have done it right, no worries. Welcome to the project! I have some reservation on this approach. May be we need to step back and ask why would someone what to limit the tlds? I feel the array may grow a little too long, also now that we have so many other tlds that have been added recently, the list keeps growing. I don't see the reason why an email like |
Imagine if you have a really long list of TLDs (taken from here for example) and using that you can tell if |
profnandaa
commented
Jun 13, 2020
Cross referencing - #1180 |
subalee
commented
Sep 20, 2021
Hey everyone, I'm not sure what's the best way to move forward now. Is this something you guys want to pursue or should I just go ahead and close this? @profnandaa@askel4dd |
Hey! this builds heavily on #1248 but since that has been inactive for a couple of weeks I've decided to give it a go.
This PR adds the
valid_tldsoption toisURL,isFQDN,isEmailwith default set to[].While being a standalone option it only works as long as
require_tldis set totrue.Disclaimer: This is my first time submitting PR to OS project so I'm not quite sure whether i'm not breaking any code of conduct by creating this PR when there is already a similar one. I haven't found any contribution guidelines or anything.