summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index 8098102e92..89b414eba8 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -562,6 +562,14 @@ describe('MFM', () => {
]);
});
+ it('ignore 】', () => {
+ const tokens = parse('#foo】');
+ assert.deepStrictEqual(tokens, [
+ leaf('hashtag', { hashtag: 'foo' }),
+ text('】'),
+ ]);
+ });
+
it('allow including number', () => {
const tokens = parse('#foo123');
assert.deepStrictEqual(tokens, [