News for hackers. Stuff that matters.
Re:Show HN: Parse no-protocol URL, no-domain URI and email a... by jxub on Friday June 14, 2019 @05:31AM (#20181602)
It looks interesting, but the readme nor the title doesn't make clear what is the project about. Would someone care to explain?
Re:Show HN: Parse no-protocol URL, no-domain URI and email a... by mgliwka on Friday June 14, 2019 @05:55AM (#20181714)
This project attempts to parse url's and email addresses from text, even when the protocol is missing or they're mangled in some other fashion (i.e. google.com/test-url?id=2 gets parsed and identified as valid URL, but invalid.nontld/test not. Or "[email protected] Text" get's parsed as [email protected])
Re:Show HN: Parse no-protocol URL, no-domain URI and email a... by gray_-_wolf on Friday June 14, 2019 @07:24AM (#20182068)
So it needs to be updated every time new tld is added? That seems... suboptimal. Also it will not work for intranet addresses (valid.insidemylan/test).
Re:Show HN: Parse no-protocol URL, no-domain URI and email a... by YesThatTom2 on Friday June 14, 2019 @07:21AM (#20182053)
Suggestion: change parse to extract

That would be even more clear.

Re:Show HN: Parse no-protocol URL, no-domain URI and email a... by ken on Friday June 14, 2019 @09:11AM (#20182629)
FWIW, Apple’s implementation of this is called “NSDataDetector”.