Commit f4a7a23ba202ad904a29ed180c4af265b41d7e9b
Handle case-insensitive %3d
Fix %AjTH8fRc6yq2azq4sYgm1egkdSrR+WXPWnZNEXXXkDQ=.sha256cel committed on 1/9/2017, 8:12:48 PM
Parent: d52a7a5104122d27a4c209f65d8e9ab5e84c7e88
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -17,9 +17,9 @@ | |||
17 | 17 … | ||
18 | 18 … | var emojiDir = path.join(require.resolve('emoji-named-characters'), '../pngs') | |
19 | 19 … | var appHash = hash([fs.readFileSync(__filename)]) | |
20 | 20 … | ||
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)(?:\.([^?]*))?|(\/.*?))(?:\?(.*))?$/ | ||
22 | 22 … | ||
23 | 23 … | function MdRenderer(opts) { | |
24 | 24 … | marked.Renderer.call(this, {}) | |
25 | 25 … | this.opts = opts |
Built with git-ssb-web