summaryrefslogtreecommitdiff
path: root/src/misc/extract-custom-emojis-from-mfm.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/extract-custom-emojis-from-mfm.ts')
-rw-r--r--src/misc/extract-custom-emojis-from-mfm.ts10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/misc/extract-custom-emojis-from-mfm.ts b/src/misc/extract-custom-emojis-from-mfm.ts
deleted file mode 100644
index b29ce281b3..0000000000
--- a/src/misc/extract-custom-emojis-from-mfm.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import * as mfm from 'mfm-js';
-import { unique } from '@/prelude/array';
-
-export function extractCustomEmojisFromMfm(nodes: mfm.MfmNode[]): string[] {
- const emojiNodes = mfm.extract(nodes, (node) => {
- return (node.type === 'emojiCode' && node.props.name.length <= 100);
- });
-
- return unique(emojiNodes.map(x => x.props.name));
-}