This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Description
Originally from @nyaxt:
For keys ending with slashes, we require values to end with slashes, but any slashes (not necessarily in the path part) are OK. So for example
{
"imports": {
"https://foo.com/": "https://nyaxtstep.com/fox?grapes=/",
"https://bar.com/": "https://nyaxtstep.com/fox#/"
}
}
https://foo.com/bar/baz is mapped to https://nyaxtstep.com/fox?grapes=/bar/baz
https://foo.com/bar?baz is mapped to https://nyaxtstep.com/fox?grapes=/bar?baz
https://bar.com/baz is mapped to https://nyaxtstep.com/fox#/baz
(The behavior before d5add26 is different though)
I don't have strong opinions here; WDYT? Does this looks good?