Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
**Motivation** fix: #10924 **Test plan** ```tsx import extractPathFromURL from '@react-navigation/native/src/extractPathFromURL'; test('extractPathFromURL', () => { expect(extractPathFromURL(['https://mysite.com'], 'https://mysite.com/readPolicy?url=https://test.com')).toBe( '/readPolicy?url=https://test.com', ); }); // test fail ^^^ because `extractPathFromURL` removed all double slashes // Expected: "/readPolicy?url=https://test.com" // Received: "/readPolicy?url=https:/test.com" ``` Co-authored-by: Michał Osadnik <micosa97@gmail.com>
- Loading branch information