mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
schemeRegex -> schemeNameRegex
Scheme could be understood to include the typical `:` separator.
This commit is contained in:
parent
a05bc9eb92
commit
2e451a663e
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ std::regex revRegex(revRegexS, std::regex::ECMAScript);
|
|||
ParsedURL parseURL(const std::string & url)
|
||||
{
|
||||
static std::regex uriRegex(
|
||||
"((" + schemeRegex + "):"
|
||||
"((" + schemeNameRegex + "):"
|
||||
+ "(?:(?://(" + authorityRegex + ")(" + absPathRegex + "))|(/?" + pathRegex + ")))"
|
||||
+ "(?:\\?(" + queryRegex + "))?"
|
||||
+ "(?:#(" + queryRegex + "))?",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue