Hi Alex, Alex Kost <[email protected]> writes:
> +(defcustom pretty-sha-path-regexp
> + (rx "/"
> + (or "nix" "gnu")
> + "/store/"
> + (group (= 32 alnum)))
I'm not sure if it's worth it, but you could make this regexp more
restrictive. Nix hashes can only contain the following 32 characters:
"0123456789abcdfghijklmnpqrsvwxyz"
i.e. digits and lowercase ASCII letters excluding (e o u t). See
'base32Chars' in nix/libutil/hash.cc.
Mark
