mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 20:36:57 +03:00
Merge pull request #1187 from matrix-org/luke/fix-rte-emoji-filter-supported
Filter out unsupported emoji from the emoji meta data
This commit is contained in:
commit
14ddf4e2aa
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
const EMOJI_DATA = require('emojione/emoji.json');
|
const EMOJI_DATA = require('emojione/emoji.json');
|
||||||
|
const EMOJI_SUPPORTED = Object.keys(require('emojione').emojioneList);
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
const output = Object.keys(EMOJI_DATA).map(
|
const output = Object.keys(EMOJI_DATA).map(
|
||||||
|
@ -16,7 +17,9 @@ const output = Object.keys(EMOJI_DATA).map(
|
||||||
}
|
}
|
||||||
return newDatum;
|
return newDatum;
|
||||||
}
|
}
|
||||||
);
|
).filter((datum) => {
|
||||||
|
return EMOJI_SUPPORTED.includes(datum.shortname);
|
||||||
|
});
|
||||||
|
|
||||||
// Write to a file in src. Changes should be checked into git. This file is copied by
|
// Write to a file in src. Changes should be checked into git. This file is copied by
|
||||||
// babel using --copy-files
|
// babel using --copy-files
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue