fp-ts-std icon indicating copy to clipboard operation
fp-ts-std copied to clipboard

URLPath origin/base can be lost

Open samhh opened this issue 2 years ago • 0 comments

unsafeUnwrap(fromStringO("//x")) = new URL("https://x")

The only bug I can see this causing is that isURLPath would fail its check.

A generalised path parser for URL which URLPath could use here in fromString may be helpful.

samhh avatar Nov 01 '23 13:11 samhh