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
I'm not familiar with the intricacies of validating URLs, so this might be a non-issue. But I thought about reporting it since I can use the URL just fine.
Using zod 1.10.1
The text was updated successfully, but these errors were encountered:
The first URL is parsing fine for me. The URL you're passing into new URL is different from the first: it contains two slashes after nautil.us. Nautilus still manages to serve the correct page, but in general double slashes won't work as expected in URLs.
That said: I hadn't considered using new URL as a way of checking for valid URLs...I like the idea! I would accept a PR that switches URL validation over to that approach, since it feels more Javascript-native.
The following URL fails the validation:
However, the same URL is accepted without any issue by the URL class:
I'm not familiar with the intricacies of validating URLs, so this might be a non-issue. But I thought about reporting it since I can use the URL just fine.
Using zod 1.10.1
The text was updated successfully, but these errors were encountered: