Browse Source

add support for sha256 blobs

Paul Frazee 5 years ago
parent
commit
f18b89e378
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/lib/blobs.js

+ 1
- 1
app/lib/blobs.js View File

@@ -113,7 +113,7 @@ module.exports = function (sbot, checkout_dir) {
113 113
 }
114 114
 
115 115
 // blob url parser
116
-var re = /^blob:([a-z0-9\+\/=]+\.blake2s)\??(.*)$/i
116
+var re = /^blob:([a-z0-9\+\/=]+\.(?:sha256|blake2s))\??(.*)$/i
117 117
 var url_parse =
118 118
 module.exports.url_parse = function (str) {
119 119
   var parts = re.exec(str)

Loading…
Cancel
Save