Commit 29de3208 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: add comment about CIDv0 and CIDv1

parent a5383d3a
......@@ -222,7 +222,10 @@ is_strange_url()
is_ipfs_hash()
{
echo "$1" | grep -q -E "^Qm[[:alnum:]]{44}$"
# If a CID is 46 characters starting with "Qm", it's a CIDv0
echo "$1" | grep -q -E "^Qm[[:alnum:]]{44}$" && return
# TODO: CIDv1 support, see https://github.com/multiformats/cid
return 1
}
is_ipfsurl()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment