Fix parsing of '#nixosConfigurations."hostname".config...'

This is not strictly speaking valid but who cares.
This commit is contained in:
Eelco Dolstra 2020-02-03 14:29:34 +01:00
parent 44d6421160
commit d070e1c532

View file

@ -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).