{"action":"created","issue":{"url":"https://api.github.com/repos/baedert/corebird/issues/651","repository_url":"https://api.github.com/repos/baedert/corebird","labels_url":"https://api.github.com/repos/baedert/corebird/issues/651/labels{/name}","comments_url":"https://api.github.com/repos/baedert/corebird/issues/651/comments","events_url":"https://api.github.com/repos/baedert/corebird/issues/651/events","html_url":"https://github.com/baedert/corebird/issues/651","id":193798699,"number":651,"title":"Compose tweet character counting can't handle Wikipedia URLs","user":{"login":"IBBoard","id":388582,"avatar_url":"https://avatars.githubusercontent.com/u/388582?v=3","gravatar_id":"","url":"https://api.github.com/users/IBBoard","html_url":"https://github.com/IBBoard","followers_url":"https://api.github.com/users/IBBoard/followers","following_url":"https://api.github.com/users/IBBoard/following{/other_user}","gists_url":"https://api.github.com/users/IBBoard/gists{/gist_id}","starred_url":"https://api.github.com/users/IBBoard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IBBoard/subscriptions","organizations_url":"https://api.github.com/users/IBBoard/orgs","repos_url":"https://api.github.com/users/IBBoard/repos","events_url":"https://api.github.com/users/IBBoard/events{/privacy}","received_events_url":"https://api.github.com/users/IBBoard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-06T15:17:29Z","updated_at":"2016-12-08T10:52:30Z","closed_at":null,"body":"I've just found an awkward URL that Corebird's character counting doesn't handle, but the Twitter UI does.\r\n\r\nIf a URL includes some symbols (e.g. brackets in many Wikipedia URLs) then Corebird thinks the URL has ended and everything else is text. This then takes you over the character count.\r\n\r\nWith a URL (copied and pasted from Wikipedia in Firefox) it counts -49 characters left:\r\n    Here is a message that should be able to fit with a URL at the end but the character count doesn't like the symbols! https://en.wikipedia.org/wiki/Glob_(programming)#DOS_COMMAND.COM_and_Windows_cmd.exe\r\n\r\nBut with URL-encoded symbols it counts it correctly and says 0 characters left:\r\n    Here is a message that should be able to fit with a URL at the end but the character count doesn't like the symbols! https://en.wikipedia.org/wiki/Glob_%29programming%29#DOS_COMMAND.COM_and_Windows_cmd.exe\r\n\r\nExpected behaviour is that both have a \"characters left\" count of zero.\r\n\r\nRFC1738 [does appear to allow brackets in URLs](http://www.blooberry.com/indexdot/html/topics/urlencoding.htm), but I can also see that it's tricky to get the right behaviour for (what about if I hadn't put the anchor on that URL? what about if the URL is at the end of a sentence that's just in brackets and so the bracket _isn't_ part of the URL?)"},"comment":{"url":"https://api.github.com/repos/baedert/corebird/issues/comments/265711873","html_url":"https://github.com/baedert/corebird/issues/651#issuecomment-265711873","issue_url":"https://api.github.com/repos/baedert/corebird/issues/651","id":265711873,"user":{"login":"Vistaus","id":1716229,"avatar_url":"https://avatars.githubusercontent.com/u/1716229?v=3","gravatar_id":"","url":"https://api.github.com/users/Vistaus","html_url":"https://github.com/Vistaus","followers_url":"https://api.github.com/users/Vistaus/followers","following_url":"https://api.github.com/users/Vistaus/following{/other_user}","gists_url":"https://api.github.com/users/Vistaus/gists{/gist_id}","starred_url":"https://api.github.com/users/Vistaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vistaus/subscriptions","organizations_url":"https://api.github.com/users/Vistaus/orgs","repos_url":"https://api.github.com/users/Vistaus/repos","events_url":"https://api.github.com/users/Vistaus/events{/privacy}","received_events_url":"https://api.github.com/users/Vistaus/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T10:52:30Z","updated_at":"2016-12-08T10:52:30Z","body":"I can reproduce this. +1"}}
{"actor":{"display_login":"Vistaus"}}