aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-10-05 17:53:30 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-10-05 17:53:30 +0200
commit88a667e49e10af4a9e2daa51badbed63ad19d817 (patch)
tree8b8977aca94cc75ffa40a678bf1874c13769e115 /src/libutil
parent51c299213b6e157af3cd59dc73e0aab2762385ee (diff)
Fix s3:// store
Fixes https://github.com/NixOS/nixos-org-configurations/issues/123.
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/url-parts.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/url-parts.hh b/src/libutil/url-parts.hh
index 64e06cfbc..68be15cb0 100644
--- a/src/libutil/url-parts.hh
+++ b/src/libutil/url-parts.hh
@@ -7,7 +7,7 @@ namespace nix {
// URI stuff.
const static std::string pctEncoded = "(?:%[0-9a-fA-F][0-9a-fA-F])";
-const static std::string schemeRegex = "(?:[a-z+.-]+)";
+const static std::string schemeRegex = "(?:[a-z][a-z0-9+.-]*)";
const static std::string ipv6AddressRegex = "(?:\\[[0-9a-fA-F:]+\\])";
const static std::string unreservedRegex = "(?:[a-zA-Z0-9-._~])";
const static std::string subdelimsRegex = "(?:[!$&'\"()*+,;=])";