{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/441","labels_url":"https://api.github.com/repos/manastech/crystal/issues/441/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/441/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/441/events","html_url":"https://github.com/manastech/crystal/issues/441","id":58589391,"number":441,"title":"String#split when separator is the last character","user":{"login":"ysbaddaden","id":47380,"avatar_url":"https://avatars.githubusercontent.com/u/47380?v=3","gravatar_id":"","url":"https://api.github.com/users/ysbaddaden","html_url":"https://github.com/ysbaddaden","followers_url":"https://api.github.com/users/ysbaddaden/followers","following_url":"https://api.github.com/users/ysbaddaden/following{/other_user}","gists_url":"https://api.github.com/users/ysbaddaden/gists{/gist_id}","starred_url":"https://api.github.com/users/ysbaddaden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysbaddaden/subscriptions","organizations_url":"https://api.github.com/users/ysbaddaden/orgs","repos_url":"https://api.github.com/users/ysbaddaden/repos","events_url":"https://api.github.com/users/ysbaddaden/events{/privacy}","received_events_url":"https://api.github.com/users/ysbaddaden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-23T14:06:34Z","updated_at":"2015-02-23T14:33:26Z","closed_at":"2015-02-23T14:33:26Z","body":"```crystal\r\n# OK:\r\n\"a=b\".split(\"=\") # => [\"a\", \"b\"]\r\n\r\n# BAD:\r\n\"a=\".split(\"=\") # => [\"a\"]\r\n```\r\n\r\nI expected `[\"a\", \"\"]` instead."},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/75550244","html_url":"https://github.com/manastech/crystal/issues/441#issuecomment-75550244","issue_url":"https://api.github.com/repos/manastech/crystal/issues/441","id":75550244,"user":{"login":"ysbaddaden","id":47380,"avatar_url":"https://avatars.githubusercontent.com/u/47380?v=3","gravatar_id":"","url":"https://api.github.com/users/ysbaddaden","html_url":"https://github.com/ysbaddaden","followers_url":"https://api.github.com/users/ysbaddaden/followers","following_url":"https://api.github.com/users/ysbaddaden/following{/other_user}","gists_url":"https://api.github.com/users/ysbaddaden/gists{/gist_id}","starred_url":"https://api.github.com/users/ysbaddaden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysbaddaden/subscriptions","organizations_url":"https://api.github.com/users/ysbaddaden/orgs","repos_url":"https://api.github.com/users/ysbaddaden/repos","events_url":"https://api.github.com/users/ysbaddaden/events{/privacy}","received_events_url":"https://api.github.com/users/ysbaddaden/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T14:33:25Z","updated_at":"2015-02-23T14:33:25Z","body":"I was sure I tried and Ruby returned an empty string, before reporting, but just did, and yeah it skips it entirely. I guess I've been misguided by Ruby's `k, v = str.split('=')` where `v` is nil, whereas Crystal raises an out of bound exception..."}}