From d070e1c5321b43496f1113198e62b2b647433459 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 3 Feb 2020 14:29:34 +0100 Subject: [PATCH] Fix parsing of '#nixosConfigurations."hostname".config...' This is not strictly speaking valid but who cares. --- src/libstore/fetchers/regex.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/fetchers/regex.hh b/src/libstore/fetchers/regex.hh index ad434860f..504d7bf18 100644 --- a/src/libstore/fetchers/regex.hh +++ b/src/libstore/fetchers/regex.hh @@ -13,7 +13,7 @@ const static std::string authorityRegex = const static std::string segmentRegex = "[a-zA-Z0-9._~-]+"; const static std::string pathRegex = "(?:/?" + segmentRegex + "(?:/" + segmentRegex + ")*|/?)"; const static std::string pcharRegex = - "(?:[a-zA-Z0-9-._~!$&'()*+,;=:@ ]|" + pctEncoded + ")"; + "(?:[a-zA-Z0-9-._~!$&'\"()*+,;=:@ ]|" + pctEncoded + ")"; const static std::string queryRegex = "(?:" + pcharRegex + "|[/?])*"; // A Git ref (i.e. branch or tag name).