mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 11:36:03 +01:00
parent
3f18cad5f1
commit
c1317017e9
1 changed files with 2 additions and 1 deletions
|
|
@ -109,7 +109,8 @@ std::pair<FlakeRef, std::string> parsePathFlakeRefWithFragment(
|
|||
|
||||
std::smatch match;
|
||||
auto succeeds = std::regex_match(url, match, pathFlakeRegex);
|
||||
assert(succeeds);
|
||||
if (!succeeds)
|
||||
throw Error("invalid flakeref '%s'", url);
|
||||
auto path = match[1].str();
|
||||
auto query = decodeQuery(match[3].str(), /*lenient=*/true);
|
||||
auto fragment = percentDecode(match[5].str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue