{"action":"opened","issue":{"url":"https://api.github.com/repos/gobblejs/gobble/issues/97","labels_url":"https://api.github.com/repos/gobblejs/gobble/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/gobblejs/gobble/issues/97/comments","events_url":"https://api.github.com/repos/gobblejs/gobble/issues/97/events","html_url":"https://github.com/gobblejs/gobble/issues/97","id":122615430,"number":97,"title":"Default with accept with regex doesn't transform to .ext","user":{"login":"martypdx","id":478864,"avatar_url":"https://avatars.githubusercontent.com/u/478864?v=3","gravatar_id":"","url":"https://api.github.com/users/martypdx","html_url":"https://github.com/martypdx","followers_url":"https://api.github.com/users/martypdx/followers","following_url":"https://api.github.com/users/martypdx/following{/other_user}","gists_url":"https://api.github.com/users/martypdx/gists{/gist_id}","starred_url":"https://api.github.com/users/martypdx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martypdx/subscriptions","organizations_url":"https://api.github.com/users/martypdx/orgs","repos_url":"https://api.github.com/users/martypdx/repos","events_url":"https://api.github.com/users/martypdx/events{/privacy}","received_events_url":"https://api.github.com/users/martypdx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-16T22:13:43Z","updated_at":"2015-12-16T22:13:43Z","closed_at":null,"body":"Bit of an edge case, but given file transformer defaults like:\r\n\r\n```js\r\nsomeTransformer.defaults = {\r\n\taccept: /\\..*/,\r\n\text: '.js'\r\n};\r\n```\r\n\r\nOutput won't get mapped correctly because [this line](https://github.com/gobblejs/gobble/blob/a667fdcab8d4a4021fc4aa29ced173f61dbac48a/src/builtins/map.js#L32):\r\n\r\n```js\r\nconst destname = ( options.ext && ~options.accept.indexOf( ext ) ) ? ...  : ... ;\r\n```\r\n\r\nis doing an `indexOf` check so regex fails\r\n"}}