{"action":"created","issue":{"url":"https://api.github.com/repos/noseglid/gulp-grep-fail/issues/3","repository_url":"https://api.github.com/repos/noseglid/gulp-grep-fail","labels_url":"https://api.github.com/repos/noseglid/gulp-grep-fail/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/noseglid/gulp-grep-fail/issues/3/comments","events_url":"https://api.github.com/repos/noseglid/gulp-grep-fail/issues/3/events","html_url":"https://github.com/noseglid/gulp-grep-fail/issues/3","id":141932623,"number":3,"title":"Plugin does not seem to support Regex (particularly Negative LookBehind)","user":{"login":"nkoterba","id":2508944,"avatar_url":"https://avatars.githubusercontent.com/u/2508944?v=3","gravatar_id":"","url":"https://api.github.com/users/nkoterba","html_url":"https://github.com/nkoterba","followers_url":"https://api.github.com/users/nkoterba/followers","following_url":"https://api.github.com/users/nkoterba/following{/other_user}","gists_url":"https://api.github.com/users/nkoterba/gists{/gist_id}","starred_url":"https://api.github.com/users/nkoterba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkoterba/subscriptions","organizations_url":"https://api.github.com/users/nkoterba/orgs","repos_url":"https://api.github.com/users/nkoterba/repos","events_url":"https://api.github.com/users/nkoterba/events{/privacy}","received_events_url":"https://api.github.com/users/nkoterba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-18T17:38:39Z","updated_at":"2016-03-18T19:41:41Z","closed_at":null,"body":"Hi -\r\n\r\nI was hoping to use this plugin to fail a gulp task if I have content in my line that is **not** preceded by comment syntax (e.g. `//`).\r\n\r\nFor example:\r\n```javascript\r\n  // Should **not** fail gulp task\r\n  // this.tryToRun(() => blah());\r\n\r\n  // Should fail gulp task\r\n  this.shouldFail(() => blah2());\r\n```\r\n\r\nThe negative lookbehind Regex I need to execute (without escaping) is `(?<!//)=>` for each line in the stream (using standard line break characters).\r\n\r\nUnfortunately, it looks like:\r\n1) BufferTools.indexOf doesn't support true grep and/or regex.\r\n2) Grep itself doesn't support negative lookbehind (have to use \"perl\" version) at least according to this SO post: http://stackoverflow.com/a/11685173\r\n\r\nAny plans to implement such a feature?"},"comment":{"url":"https://api.github.com/repos/noseglid/gulp-grep-fail/issues/comments/198514161","html_url":"https://github.com/noseglid/gulp-grep-fail/issues/3#issuecomment-198514161","issue_url":"https://api.github.com/repos/noseglid/gulp-grep-fail/issues/3","id":198514161,"user":{"login":"noseglid","id":933880,"avatar_url":"https://avatars.githubusercontent.com/u/933880?v=3","gravatar_id":"","url":"https://api.github.com/users/noseglid","html_url":"https://github.com/noseglid","followers_url":"https://api.github.com/users/noseglid/followers","following_url":"https://api.github.com/users/noseglid/following{/other_user}","gists_url":"https://api.github.com/users/noseglid/gists{/gist_id}","starred_url":"https://api.github.com/users/noseglid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noseglid/subscriptions","organizations_url":"https://api.github.com/users/noseglid/orgs","repos_url":"https://api.github.com/users/noseglid/repos","events_url":"https://api.github.com/users/noseglid/events{/privacy}","received_events_url":"https://api.github.com/users/noseglid/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T19:41:41Z","updated_at":"2016-03-18T19:41:41Z","body":"I think it'd be a small task convert the buffer to a string and run a regex over it. I'd be happy to accept such a PR.\r\nI don't have time to implement it myself currently though. Sorry."}}