You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yup uses a regex for URL validation, which might not be the best way to go. It looks daunting at best, and is probably a nightmare to maintain. URLs are surprisingly versatile, and correctly validating all use-cases, and correctly rejecting genuinely invalid URLs, requires are LOT of work and a LOT of tests.
Instead I would propose doing something like this:
Indeed this solution seems very elegant. However it causes problems on some platforms. For example, React Native ships with a custom implementation of URL that has lots of issues (see https://www.npmjs.com/package/react-native-url-polyfill for more details).
Describe the bug
URLs containing "//" are valid according to the spec. See dubzzz/fast-check#4935 for more details.
To Reproduce
Expected behavior
This test is expected to pass because "//" is valid in a URL.
Platform:
The text was updated successfully, but these errors were encountered: