summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts/extract-mentions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src/scripts/extract-mentions.ts')
-rw-r--r--packages/client/src/scripts/extract-mentions.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/packages/client/src/scripts/extract-mentions.ts b/packages/client/src/scripts/extract-mentions.ts
deleted file mode 100644
index cc19b161a8..0000000000
--- a/packages/client/src/scripts/extract-mentions.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// test is located in test/extract-mentions
-
-import * as mfm from 'mfm-js';
-
-export function extractMentions(nodes: mfm.MfmNode[]): mfm.MfmMention['props'][] {
- // TODO: 重複を削除
- const mentionNodes = mfm.extract(nodes, (node) => node.type === 'mention');
- const mentions = mentionNodes.map(x => x.props);
-
- return mentions;
-}