{"action":"created","issue":{"url":"https://api.github.com/repos/tenderlove/rails_autolink/issues/52","labels_url":"https://api.github.com/repos/tenderlove/rails_autolink/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/tenderlove/rails_autolink/issues/52/comments","events_url":"https://api.github.com/repos/tenderlove/rails_autolink/issues/52/events","html_url":"https://github.com/tenderlove/rails_autolink/issues/52","id":41549662,"number":52,"title":"parse URLs that end in dashes","user":{"login":"tylercal","id":1126430,"avatar_url":"https://avatars.githubusercontent.com/u/1126430?v=3","gravatar_id":"","url":"https://api.github.com/users/tylercal","html_url":"https://github.com/tylercal","followers_url":"https://api.github.com/users/tylercal/followers","following_url":"https://api.github.com/users/tylercal/following{/other_user}","gists_url":"https://api.github.com/users/tylercal/gists{/gist_id}","starred_url":"https://api.github.com/users/tylercal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylercal/subscriptions","organizations_url":"https://api.github.com/users/tylercal/orgs","repos_url":"https://api.github.com/users/tylercal/repos","events_url":"https://api.github.com/users/tylercal/events{/privacy}","received_events_url":"https://api.github.com/users/tylercal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-30T00:14:42Z","updated_at":"2015-01-04T16:00:27Z","closed_at":null,"body":"```ruby\r\nauto_link('http://example.com/e-')\r\n```\r\nshould return\r\n```html\r\n<a href=\"http://example.com/e-\">http://example.com/e-</a>\r\n```\r\nbut returns\r\n```html\r\n<a href=\"http://example.com/e\">http://example.com/e</a>-\r\n```"},"comment":{"url":"https://api.github.com/repos/tenderlove/rails_autolink/issues/comments/68637638","html_url":"https://github.com/tenderlove/rails_autolink/issues/52#issuecomment-68637638","issue_url":"https://api.github.com/repos/tenderlove/rails_autolink/issues/52","id":68637638,"user":{"login":"tylercal","id":1126430,"avatar_url":"https://avatars.githubusercontent.com/u/1126430?v=3","gravatar_id":"","url":"https://api.github.com/users/tylercal","html_url":"https://github.com/tylercal","followers_url":"https://api.github.com/users/tylercal/followers","following_url":"https://api.github.com/users/tylercal/following{/other_user}","gists_url":"https://api.github.com/users/tylercal/gists{/gist_id}","starred_url":"https://api.github.com/users/tylercal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylercal/subscriptions","organizations_url":"https://api.github.com/users/tylercal/orgs","repos_url":"https://api.github.com/users/tylercal/repos","events_url":"https://api.github.com/users/tylercal/events{/privacy}","received_events_url":"https://api.github.com/users/tylercal/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T16:00:27Z","updated_at":"2015-01-04T16:00:27Z","body":"The case that I ran into involved a URL to redeem a gift code. Hyphen is a valid character for URLs, so I assume their system generates a random URL from the valid character set which can sometimes end in a hyphen. \r\n\r\nI agree that it's unusual, but I don't think it's in anyway invalid. "}}