3 ms·
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/
by mgliwka 7y ago
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 "test@example.euSample Text" get's parsed as test@example.eu)
- YesThatTom2 7y agoSuggestion: change parse to extract That would be even more clear.
- ken 7y agoFWIW, Apple’s implementation of this is called “NSDataDetector”.
- gray_-_wolf 7y agoSo 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).