{"action":"created","issue":{"url":"https://api.github.com/repos/demerzel3/karma-sourcemap-loader/issues/25","labels_url":"https://api.github.com/repos/demerzel3/karma-sourcemap-loader/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/demerzel3/karma-sourcemap-loader/issues/25/comments","events_url":"https://api.github.com/repos/demerzel3/karma-sourcemap-loader/issues/25/events","html_url":"https://github.com/demerzel3/karma-sourcemap-loader/pull/25","id":117430886,"number":25,"title":"fix charset prefix","user":{"login":"rweng","id":202063,"avatar_url":"https://avatars.githubusercontent.com/u/202063?v=3","gravatar_id":"","url":"https://api.github.com/users/rweng","html_url":"https://github.com/rweng","followers_url":"https://api.github.com/users/rweng/followers","following_url":"https://api.github.com/users/rweng/following{/other_user}","gists_url":"https://api.github.com/users/rweng/gists{/gist_id}","starred_url":"https://api.github.com/users/rweng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rweng/subscriptions","organizations_url":"https://api.github.com/users/rweng/orgs","repos_url":"https://api.github.com/users/rweng/repos","events_url":"https://api.github.com/users/rweng/events{/privacy}","received_events_url":"https://api.github.com/users/rweng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T19:30:45Z","updated_at":"2015-12-14T13:41:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/demerzel3/karma-sourcemap-loader/pulls/25","html_url":"https://github.com/demerzel3/karma-sourcemap-loader/pull/25","diff_url":"https://github.com/demerzel3/karma-sourcemap-loader/pull/25.diff","patch_url":"https://github.com/demerzel3/karma-sourcemap-loader/pull/25.patch"},"body":"Hi, so the sourcemaps generated by the browserify tsify plugin start with:\r\n\r\n    //# sourceMappingURL=data:application/json;charset=utf-8;base64,\r\n\r\nThe additional charset information caused this plugin to crash. I fixed it for my use-case, though there probably is a better way of doing this.\r\n\r\nFeel free to refactor or merge in :)"},"comment":{"url":"https://api.github.com/repos/demerzel3/karma-sourcemap-loader/issues/comments/164441194","html_url":"https://github.com/demerzel3/karma-sourcemap-loader/pull/25#issuecomment-164441194","issue_url":"https://api.github.com/repos/demerzel3/karma-sourcemap-loader/issues/25","id":164441194,"user":{"login":"klaascuvelier","id":354147,"avatar_url":"https://avatars.githubusercontent.com/u/354147?v=3","gravatar_id":"","url":"https://api.github.com/users/klaascuvelier","html_url":"https://github.com/klaascuvelier","followers_url":"https://api.github.com/users/klaascuvelier/followers","following_url":"https://api.github.com/users/klaascuvelier/following{/other_user}","gists_url":"https://api.github.com/users/klaascuvelier/gists{/gist_id}","starred_url":"https://api.github.com/users/klaascuvelier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klaascuvelier/subscriptions","organizations_url":"https://api.github.com/users/klaascuvelier/orgs","repos_url":"https://api.github.com/users/klaascuvelier/repos","events_url":"https://api.github.com/users/klaascuvelier/events{/privacy}","received_events_url":"https://api.github.com/users/klaascuvelier/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T13:41:32Z","updated_at":"2015-12-14T13:41:32Z","body":"Hmm I just stumbled upon this PR because I was creating a PR myself.\r\nI did not see your PR before, because there was no issue filed.\r\n\r\nI tackled this in a similar way, but a bit more strict (+ faster as @SimenB mentioned): #28 \r\nAlso, I actually use the charset in the `.toString` method of the buffer.\r\n"}}