add support for sha256 blobs
This commit is contained in:
parent
6cdcc86c86
commit
f18b89e378
@ -113,7 +113,7 @@ module.exports = function (sbot, checkout_dir) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// blob url parser
|
// blob url parser
|
||||||
var re = /^blob:([a-z0-9\+\/=]+\.blake2s)\??(.*)$/i
|
var re = /^blob:([a-z0-9\+\/=]+\.(?:sha256|blake2s))\??(.*)$/i
|
||||||
var url_parse =
|
var url_parse =
|
||||||
module.exports.url_parse = function (str) {
|
module.exports.url_parse = function (str) {
|
||||||
var parts = re.exec(str)
|
var parts = re.exec(str)
|
||||||
|
Loading…
Reference in New Issue
Block a user