{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/strip-css-comments/issues/11","labels_url":"https://api.github.com/repos/sindresorhus/strip-css-comments/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/strip-css-comments/issues/11/comments","events_url":"https://api.github.com/repos/sindresorhus/strip-css-comments/issues/11/events","html_url":"https://github.com/sindresorhus/strip-css-comments/pull/11","id":93633485,"number":11,"title":"Add filter option","user":{"login":"maximumhallinan","id":3819855,"avatar_url":"https://avatars.githubusercontent.com/u/3819855?v=3","gravatar_id":"","url":"https://api.github.com/users/maximumhallinan","html_url":"https://github.com/maximumhallinan","followers_url":"https://api.github.com/users/maximumhallinan/followers","following_url":"https://api.github.com/users/maximumhallinan/following{/other_user}","gists_url":"https://api.github.com/users/maximumhallinan/gists{/gist_id}","starred_url":"https://api.github.com/users/maximumhallinan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximumhallinan/subscriptions","organizations_url":"https://api.github.com/users/maximumhallinan/orgs","repos_url":"https://api.github.com/users/maximumhallinan/repos","events_url":"https://api.github.com/users/maximumhallinan/events{/privacy}","received_events_url":"https://api.github.com/users/maximumhallinan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-07-07T21:28:48Z","updated_at":"2015-07-21T01:35:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sindresorhus/strip-css-comments/pulls/11","html_url":"https://github.com/sindresorhus/strip-css-comments/pull/11","diff_url":"https://github.com/sindresorhus/strip-css-comments/pull/11.diff","patch_url":"https://github.com/sindresorhus/strip-css-comments/pull/11.patch"},"body":"In response to your most recent comment on [issue #10](https://github.com/sindresorhus/strip-css-comments/issues/10#issuecomment-118329158), this PR adds support for a filter option. The filter option is a function that \"gets the comment contents and returns a boolean whether to strip the comment\". If true, the comment is stripped. If false, the comment is preserved. This PR includes relevant tests and documentation."},"comment":{"url":"https://api.github.com/repos/sindresorhus/strip-css-comments/issues/comments/123125308","html_url":"https://github.com/sindresorhus/strip-css-comments/pull/11#issuecomment-123125308","issue_url":"https://api.github.com/repos/sindresorhus/strip-css-comments/issues/11","id":123125308,"user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T01:35:37Z","updated_at":"2015-07-21T01:35:37Z","body":"Ok, let's go with function/regex and `/*!` preserved by default. With this it should be easy to still support the old `all` option too, so we don't end up breaking anything :)"}}