{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/11641","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/11641/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/11641/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/11641/events","html_url":"https://github.com/facebook/react-native/pull/11641","id":197711269,"number":11641,"title":"Fix the `path.sep` replacement of node-haste for Windows","user":{"login":"jhen0409","id":3001525,"avatar_url":"https://avatars.githubusercontent.com/u/3001525?v=3","gravatar_id":"","url":"https://api.github.com/users/jhen0409","html_url":"https://github.com/jhen0409","followers_url":"https://api.github.com/users/jhen0409/followers","following_url":"https://api.github.com/users/jhen0409/following{/other_user}","gists_url":"https://api.github.com/users/jhen0409/gists{/gist_id}","starred_url":"https://api.github.com/users/jhen0409/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhen0409/subscriptions","organizations_url":"https://api.github.com/users/jhen0409/orgs","repos_url":"https://api.github.com/users/jhen0409/repos","events_url":"https://api.github.com/users/jhen0409/events{/privacy}","received_events_url":"https://api.github.com/users/jhen0409/received_events","type":"User","site_admin":false},"labels":[{"id":196858975,"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7","default":false},{"id":172176599,"url":"https://api.github.com/repos/facebook/react-native/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-27T14:35:34Z","updated_at":"2016-12-27T21:42:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/11641","html_url":"https://github.com/facebook/react-native/pull/11641","diff_url":"https://github.com/facebook/react-native/pull/11641.diff","patch_url":"https://github.com/facebook/react-native/pull/11641.patch"},"body":"Fix the `path.sep` replacement for Windows, currently it just replace one segment:\r\n\r\n```js\r\n// Result: './lib/random\\random-byte.js'\r\n'./lib\\\\random\\\\random-byte.js'.replace(path.sep, '/') \r\n```\r\n\r\nChange to regex will work fine:\r\n\r\n```js\r\n// Result: './lib/random/random-byte.js' (correct)\r\n'./lib\\\\random\\\\random-byte.js'.replace(new RegExp('\\\\' + path.sep, 'g'), '/') \r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/269386711","html_url":"https://github.com/facebook/react-native/pull/11641#issuecomment-269386711","issue_url":"https://api.github.com/repos/facebook/react-native/issues/11641","id":269386711,"user":{"login":"ide","id":379606,"avatar_url":"https://avatars.githubusercontent.com/u/379606?v=3","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T21:42:32Z","updated_at":"2016-12-27T21:42:32Z","body":"@facebook-github-bot shipit"}}
{"actor":{"display_login":"ide"}}