{"action":"created","issue":{"url":"https://api.github.com/repos/duckduckgo/duckduckgo-template-helpers/issues/4","labels_url":"https://api.github.com/repos/duckduckgo/duckduckgo-template-helpers/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/duckduckgo/duckduckgo-template-helpers/issues/4/comments","events_url":"https://api.github.com/repos/duckduckgo/duckduckgo-template-helpers/issues/4/events","html_url":"https://github.com/duckduckgo/duckduckgo-template-helpers/pull/4","id":104972821,"number":4,"title":"fix ellipsis limit and test","user":{"login":"marianosimone","id":104916,"avatar_url":"https://avatars.githubusercontent.com/u/104916?v=3","gravatar_id":"","url":"https://api.github.com/users/marianosimone","html_url":"https://github.com/marianosimone","followers_url":"https://api.github.com/users/marianosimone/followers","following_url":"https://api.github.com/users/marianosimone/following{/other_user}","gists_url":"https://api.github.com/users/marianosimone/gists{/gist_id}","starred_url":"https://api.github.com/users/marianosimone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marianosimone/subscriptions","organizations_url":"https://api.github.com/users/marianosimone/orgs","repos_url":"https://api.github.com/users/marianosimone/repos","events_url":"https://api.github.com/users/marianosimone/events{/privacy}","received_events_url":"https://api.github.com/users/marianosimone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"andrey-p","id":1431577,"avatar_url":"https://avatars.githubusercontent.com/u/1431577?v=3","gravatar_id":"","url":"https://api.github.com/users/andrey-p","html_url":"https://github.com/andrey-p","followers_url":"https://api.github.com/users/andrey-p/followers","following_url":"https://api.github.com/users/andrey-p/following{/other_user}","gists_url":"https://api.github.com/users/andrey-p/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey-p/subscriptions","organizations_url":"https://api.github.com/users/andrey-p/orgs","repos_url":"https://api.github.com/users/andrey-p/repos","events_url":"https://api.github.com/users/andrey-p/events{/privacy}","received_events_url":"https://api.github.com/users/andrey-p/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-09-04T21:26:35Z","updated_at":"2015-09-08T14:22:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/duckduckgo/duckduckgo-template-helpers/pulls/4","html_url":"https://github.com/duckduckgo/duckduckgo-template-helpers/pull/4","diff_url":"https://github.com/duckduckgo/duckduckgo-template-helpers/pull/4.diff","patch_url":"https://github.com/duckduckgo/duckduckgo-template-helpers/pull/4.patch"},"body":"The `ellipsis` helper seem to be off regarding its limit.\r\n\r\nIn the docs it says: `Shortens a string by removing words until string length is <= 'limit'...`, but then the code was using `<` instead. Besides that, it was taking the space after the last word into account, when it shouldn't (as it's the last word, there shouldn't be a ws after it)\r\n\r\n:dancer: my first PR in this repo!!!"},"comment":{"url":"https://api.github.com/repos/duckduckgo/duckduckgo-template-helpers/issues/comments/138578232","html_url":"https://github.com/duckduckgo/duckduckgo-template-helpers/pull/4#issuecomment-138578232","issue_url":"https://api.github.com/repos/duckduckgo/duckduckgo-template-helpers/issues/4","id":138578232,"user":{"login":"marianosimone","id":104916,"avatar_url":"https://avatars.githubusercontent.com/u/104916?v=3","gravatar_id":"","url":"https://api.github.com/users/marianosimone","html_url":"https://github.com/marianosimone","followers_url":"https://api.github.com/users/marianosimone/followers","following_url":"https://api.github.com/users/marianosimone/following{/other_user}","gists_url":"https://api.github.com/users/marianosimone/gists{/gist_id}","starred_url":"https://api.github.com/users/marianosimone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marianosimone/subscriptions","organizations_url":"https://api.github.com/users/marianosimone/orgs","repos_url":"https://api.github.com/users/marianosimone/repos","events_url":"https://api.github.com/users/marianosimone/events{/privacy}","received_events_url":"https://api.github.com/users/marianosimone/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T14:22:54Z","updated_at":"2015-09-08T14:22:54Z","body":"@andrey-p fixed!"}}