{"action":"opened","issue":{"url":"https://api.github.com/repos/LeonardoCardoso/SwiftLinkPreview/issues/17","repository_url":"https://api.github.com/repos/LeonardoCardoso/SwiftLinkPreview","labels_url":"https://api.github.com/repos/LeonardoCardoso/SwiftLinkPreview/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/LeonardoCardoso/SwiftLinkPreview/issues/17/comments","events_url":"https://api.github.com/repos/LeonardoCardoso/SwiftLinkPreview/issues/17/events","html_url":"https://github.com/LeonardoCardoso/SwiftLinkPreview/issues/17","id":165914483,"number":17,"title":"Regex mismatches (or allowing for more types of urls)","user":{"login":"gadu","id":6687174,"avatar_url":"https://avatars.githubusercontent.com/u/6687174?v=3","gravatar_id":"","url":"https://api.github.com/users/gadu","html_url":"https://github.com/gadu","followers_url":"https://api.github.com/users/gadu/followers","following_url":"https://api.github.com/users/gadu/following{/other_user}","gists_url":"https://api.github.com/users/gadu/gists{/gist_id}","starred_url":"https://api.github.com/users/gadu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gadu/subscriptions","organizations_url":"https://api.github.com/users/gadu/orgs","repos_url":"https://api.github.com/users/gadu/repos","events_url":"https://api.github.com/users/gadu/events{/privacy}","received_events_url":"https://api.github.com/users/gadu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-16T06:50:36Z","updated_at":"2016-07-16T06:50:36Z","closed_at":null,"body":"Is this library only supposed support certain type of url formats?\r\n\r\nWhen I tested it with www.google.com (or any other url without the http://) I got \"No URL has been found\"\r\n\r\nSimilarly, when I tried to use http://www.google.com I got \"An error occurred when parsing the HTML\"\r\n\r\nIt worked fine with the examples you used but I think requiring the http:// is a bit strict in that if a we are analyzing user typed messages, it might be quite common to see something like youtube.com which IS picked up by NSDataDetector as a link, but won't be valid as a link according to the regex you are using."}}
{"actor":{"display_login":"gadu"}}