mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 15:45:32 +00:00
Summary: Fix the `path.sep` replacement for Windows, currently it just replace one segment: ```js // Result: './lib/random\random-byte.js' './lib\\random\\random-byte.js'.replace(path.sep, '/') ``` Change to regex will work fine: ```js // Result: './lib/random/random-byte.js' (correct) './lib\\random\\random-byte.js'.replace(new RegExp('\\' + path.sep, 'g'), '/') ``` Closes https://github.com/facebook/react-native/pull/11641 Differential Revision: D4368402 fbshipit-source-id: 46f456359d1cd2ca790881773e8a76af8616cd21