{"action":"created","issue":{"url":"https://api.github.com/repos/words/dice-coefficient/issues/19","repository_url":"https://api.github.com/repos/words/dice-coefficient","labels_url":"https://api.github.com/repos/words/dice-coefficient/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/words/dice-coefficient/issues/19/comments","events_url":"https://api.github.com/repos/words/dice-coefficient/issues/19/events","html_url":"https://github.com/words/dice-coefficient/pull/19","id":374278448,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MDE1MzAy","number":19,"title":"Fix bug where comparing two single character values returns NaN","user":{"login":"bameyrick","id":8447446,"node_id":"MDQ6VXNlcjg0NDc0NDY=","avatar_url":"https://avatars0.githubusercontent.com/u/8447446?v=4","gravatar_id":"","url":"https://api.github.com/users/bameyrick","html_url":"https://github.com/bameyrick","followers_url":"https://api.github.com/users/bameyrick/followers","following_url":"https://api.github.com/users/bameyrick/following{/other_user}","gists_url":"https://api.github.com/users/bameyrick/gists{/gist_id}","starred_url":"https://api.github.com/users/bameyrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bameyrick/subscriptions","organizations_url":"https://api.github.com/users/bameyrick/orgs","repos_url":"https://api.github.com/users/bameyrick/repos","events_url":"https://api.github.com/users/bameyrick/events{/privacy}","received_events_url":"https://api.github.com/users/bameyrick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-26T08:27:52Z","updated_at":"2018-10-26T10:39:45Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/words/dice-coefficient/pulls/19","html_url":"https://github.com/words/dice-coefficient/pull/19","diff_url":"https://github.com/words/dice-coefficient/pull/19.diff","patch_url":"https://github.com/words/dice-coefficient/pull/19.patch"},"body":"This is potentially more of a problem with the `n-gram/bigram` dependency, but I noticed when one or both of the values to compare are just single characters the left and right arrays remain empty, causing the algorithm to return `NaN`.\r\n\r\nI've added a check for this where it will just create the left/right array with the value in if the length of the value is 1."},"comment":{"url":"https://api.github.com/repos/words/dice-coefficient/issues/comments/433366473","html_url":"https://github.com/words/dice-coefficient/pull/19#issuecomment-433366473","issue_url":"https://api.github.com/repos/words/dice-coefficient/issues/19","id":433366473,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzM2NjQ3Mw==","user":{"login":"wooorm","id":944406,"node_id":"MDQ6VXNlcjk0NDQwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/944406?v=4","gravatar_id":"","url":"https://api.github.com/users/wooorm","html_url":"https://github.com/wooorm","followers_url":"https://api.github.com/users/wooorm/followers","following_url":"https://api.github.com/users/wooorm/following{/other_user}","gists_url":"https://api.github.com/users/wooorm/gists{/gist_id}","starred_url":"https://api.github.com/users/wooorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wooorm/subscriptions","organizations_url":"https://api.github.com/users/wooorm/orgs","repos_url":"https://api.github.com/users/wooorm/repos","events_url":"https://api.github.com/users/wooorm/events{/privacy}","received_events_url":"https://api.github.com/users/wooorm/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T10:39:45Z","updated_at":"2018-10-26T10:39:45Z","author_association":"MEMBER","body":"@bameyrick Yes 😉"}}
{"actor":{"display_login":"wooorm"}}