Fix query parsing for path-like flakes

This commit is contained in:
Fabian Möller 2023-12-11 16:02:09 +01:00
parent 89cf53648c
commit f45d2ee2b7
No known key found for this signature in database
GPG key ID: 70B29D65DD8A7E31

View file

@ -90,7 +90,7 @@ std::pair<FlakeRef, std::string> parsePathFlakeRefWithFragment(
fragment = percentDecode(url.substr(fragmentStart+1));
}
if (pathEnd != std::string::npos && fragmentStart != std::string::npos) {
query = decodeQuery(url.substr(pathEnd+1, fragmentStart));
query = decodeQuery(url.substr(pathEnd+1, fragmentStart-pathEnd-1));
}
if (baseDir) {