Commit d69600e6a6f16e5bda4f2ab3f10499558811ad23
standardize
Matt McKegg committed on 4/13/2018, 4:05:24 AMParent: 8ab7e949190c9ca82f10914e29aae9de082158cb
Files changed
message/html/markdown.js | changed |
message/html/markdown.js | ||
---|---|---|
@@ -41,9 +41,9 @@ | ||
41 | 41 … | : api.emoji.sync.url(emoji) |
42 | 42 … | return renderEmoji(emoji, url) |
43 | 43 … | }, |
44 | 44 … | toUrl: (id) => { |
45 | - if (id[0] == '&') return api.blob.sync.url(id) | |
45 … | + if (id.startsWith('&')) return api.blob.sync.url(id) | |
46 | 46 … | if (mentions[id]) { |
47 | 47 … | return mentions[id] |
48 | 48 … | } else if (ref.isLink(id) || id.startsWith('#') || id.startsWith('?')) { |
49 | 49 … | return id |
Built with git-ssb-web