1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 04:21:16 +02:00

Write the implementation for parseNonSRIUnprefixed

This commit is contained in:
Carlo Nucera 2020-07-02 11:34:40 -04:00
parent ea48e3a5b5
commit b6b10b1d4c
2 changed files with 6 additions and 1 deletions

View file

@ -173,6 +173,11 @@ Hash Hash::parseAny(std::string_view original, std::optional<HashType> optType)
return Hash(rest, hashType, isSRI);
}
Hash Hash::parseNonSRIUnprefixed(std::string_view s, HashType type)
{
return Hash(s, type, false);
}
Hash::Hash(std::string_view rest, HashType type, bool isSRI)
: Hash(type)
{