{"action":"created","issue":{"url":"https://api.github.com/repos/medikoo/cli-color/issues/28","labels_url":"https://api.github.com/repos/medikoo/cli-color/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/medikoo/cli-color/issues/28/comments","events_url":"https://api.github.com/repos/medikoo/cli-color/issues/28/events","html_url":"https://github.com/medikoo/cli-color/pull/28","id":105055530,"number":28,"title":"PR: slice(styled, begin, end)","user":{"login":"StreetStrider","id":2124761,"avatar_url":"https://avatars.githubusercontent.com/u/2124761?v=3","gravatar_id":"","url":"https://api.github.com/users/StreetStrider","html_url":"https://github.com/StreetStrider","followers_url":"https://api.github.com/users/StreetStrider/followers","following_url":"https://api.github.com/users/StreetStrider/following{/other_user}","gists_url":"https://api.github.com/users/StreetStrider/gists{/gist_id}","starred_url":"https://api.github.com/users/StreetStrider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StreetStrider/subscriptions","organizations_url":"https://api.github.com/users/StreetStrider/orgs","repos_url":"https://api.github.com/users/StreetStrider/repos","events_url":"https://api.github.com/users/StreetStrider/events{/privacy}","received_events_url":"https://api.github.com/users/StreetStrider/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-05T23:18:20Z","updated_at":"2015-09-09T17:04:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/medikoo/cli-color/pulls/28","html_url":"https://github.com/medikoo/cli-color/pull/28","diff_url":"https://github.com/medikoo/cli-color/pull/28.diff","patch_url":"https://github.com/medikoo/cli-color/pull/28.patch"},"body":"I've started to work on tests for #27. I will push commits to corresponding branch, so this PR will be live.\r\n\r\nWhat do you think about adding also `length` in support? It will calculate styled string's length. I was thinking about slicing styled strings and sometimes this will require acquiring string's length. The implementation (for now) will be simple `strip(styled).length`."},"comment":{"url":"https://api.github.com/repos/medikoo/cli-color/issues/comments/138976912","html_url":"https://github.com/medikoo/cli-color/pull/28#issuecomment-138976912","issue_url":"https://api.github.com/repos/medikoo/cli-color/issues/28","id":138976912,"user":{"login":"StreetStrider","id":2124761,"avatar_url":"https://avatars.githubusercontent.com/u/2124761?v=3","gravatar_id":"","url":"https://api.github.com/users/StreetStrider","html_url":"https://github.com/StreetStrider","followers_url":"https://api.github.com/users/StreetStrider/followers","following_url":"https://api.github.com/users/StreetStrider/following{/other_user}","gists_url":"https://api.github.com/users/StreetStrider/gists{/gist_id}","starred_url":"https://api.github.com/users/StreetStrider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StreetStrider/subscriptions","organizations_url":"https://api.github.com/users/StreetStrider/orgs","repos_url":"https://api.github.com/users/StreetStrider/repos","events_url":"https://api.github.com/users/StreetStrider/events{/privacy}","received_events_url":"https://api.github.com/users/StreetStrider/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T17:04:29Z","updated_at":"2015-09-09T17:04:29Z","body":"@medikoo \r\n> where no function declarations are allowed\r\n\r\nSorry, do I need to replace `function foo() {…` with `var foo = function() {…`?"}}