git ssb


3+

cel / ssb-viewer



Commit f4a7a23ba202ad904a29ed180c4af265b41d7e9b

Handle case-insensitive %3d

Fix %AjTH8fRc6yq2azq4sYgm1egkdSrR+WXPWnZNEXXXkDQ=.sha256
cel committed on 1/9/2017, 3:12:48 PM
Parent: d52a7a5104122d27a4c209f65d8e9ab5e84c7e88

Files changed

index.jschanged
index.jsView
@@ -17,9 +17,9 @@
1717
1818 var emojiDir = path.join(require.resolve('emoji-named-characters'), '../pngs')
1919 var appHash = hash([fs.readFileSync(__filename)])
2020
21-var urlIdRegex = /^(?:\/(([%&]|%25)(?:[A-Za-z0-9\/+]|%2[Ff]|%2[Bb]){43}(?:=|%3D)\.sha256)(?:\.([^?]*))?|(\/.*?))(?:\?(.*))?$/
21+var urlIdRegex = /^(?:\/(([%&]|%25)(?:[A-Za-z0-9\/+]|%2[Ff]|%2[Bb]){43}(?:=|%3[Dd])\.sha256)(?:\.([^?]*))?|(\/.*?))(?:\?(.*))?$/
2222
2323 function MdRenderer(opts) {
2424 marked.Renderer.call(this, {})
2525 this.opts = opts

Built with git-ssb-web