mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
Fix indent
This commit is contained in:
parent
9d9d9ff0de
commit
d77a39a314
2 changed files with 24 additions and 23 deletions
|
@ -13,7 +13,8 @@ static const std::regex gitProviderRegex("github|gitlab|sourcehut");
|
||||||
static const std::regex gitSchemeRegex("git($|\\+.*)");
|
static const std::regex gitSchemeRegex("git($|\\+.*)");
|
||||||
static const std::regex defaultOutputRegex(".*\\.default($|\\^.*)");
|
static const std::regex defaultOutputRegex(".*\\.default($|\\^.*)");
|
||||||
|
|
||||||
std::optional<std::string> getNameFromURL(ParsedURL url) {
|
std::optional<std::string> getNameFromURL(const ParsedURL & url)
|
||||||
|
{
|
||||||
std::smatch match;
|
std::smatch match;
|
||||||
|
|
||||||
/* If there is a dir= argument, use its value */
|
/* If there is a dir= argument, use its value */
|
||||||
|
|
|
@ -15,6 +15,6 @@ namespace nix {
|
||||||
* flake output, for example because it is empty or "default".
|
* flake output, for example because it is empty or "default".
|
||||||
* Otherwise returns the extracted name.
|
* Otherwise returns the extracted name.
|
||||||
*/
|
*/
|
||||||
std::optional<std::string> getNameFromURL(ParsedURL url);
|
std::optional<std::string> getNameFromURL(const ParsedURL & url);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue