Commit aee30ac664670584e08d88e7ea2a758c0ba850ff
fix index map!
mix irving committed on 5/28/2018, 12:32:02 PMParent: 06cdd7ffafd21473dff9aae307480a103ba52d53
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -3,9 +3,9 @@ | ||
3 | 3 … | const Validator = require('is-my-json-valid') |
4 | 4 … | |
5 | 5 … | const isBlobMention = Validator(require('./schema/mention')) |
6 | 6 … | |
7 | -const INDEX_VERSION = 1 | |
7 … | +const INDEX_VERSION = 2 | |
8 | 8 … | |
9 | 9 … | module.exports = { |
10 | 10 … | name: 'meme', |
11 | 11 … | version: require('./package.json').version, |
@@ -54,9 +54,9 @@ | ||
54 | 54 … | |
55 | 55 … | function map (msg) { |
56 | 56 … | return getMentions(msg) |
57 | 57 … | .filter(isBlobMention) |
58 | - // .map(m => m.name) | |
58 … | + .map(m => m.name) | |
59 | 59 … | .map(n => n.replace(imgExtRegEx, '').replace(spaceCharRegex, ' ')) |
60 | 60 … | .join(' ') |
61 | 61 … | } |
62 | 62 … |
Built with git-ssb-web