From 95733c9490db64b4ec583a5ea1a3945f4e9bb414 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 18 Apr 2019 00:40:56 +0900 Subject: [MFM] Better hashtag parsing --- test/mfm.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') 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, [ -- cgit v1.2.3-freya