diff options
author | Qyriad <qyriad@qyriad.me> | 2024-04-30 18:11:14 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-04-30 18:11:14 -0600 |
commit | 1425aa0b7cd0d3477589f75bea4fb9c74e057fed (patch) | |
tree | 80bb09919acabf760bd948a29901b2a67d409322 /src/libutil/url.cc | |
parent | e2ab89a74b1d6044cea91e91f5c3d5fce203c2e8 (diff) |
implement parsing human-readable names from URLs
Based off of commit 257b768436a0e8ab7887f9b790c5b92a7fe51ef5
Upstream-PR: https://github.com/NixOS/nix/pull/8678
Co-authored-by: Felix Uhl <felix.uhl@outlook.com>
Change-Id: Idcb7f6191ca3310ef9dc854197f7798260c3f71d
Diffstat (limited to 'src/libutil/url.cc')
-rw-r--r-- | src/libutil/url.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/url.cc b/src/libutil/url.cc index a8f7d39fd..afccc4245 100644 --- a/src/libutil/url.cc +++ b/src/libutil/url.cc @@ -16,7 +16,7 @@ ParsedURL parseURL(const std::string & url) "((" + schemeRegex + "):" + "(?:(?://(" + authorityRegex + ")(" + absPathRegex + "))|(/?" + pathRegex + ")))" + "(?:\\?(" + queryRegex + "))?" - + "(?:#(" + queryRegex + "))?", + + "(?:#(" + fragmentRegex + "))?", std::regex::ECMAScript); std::smatch match; |