diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-18 00:40:56 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-18 00:40:56 +0900 |
| commit | 95733c9490db64b4ec583a5ea1a3945f4e9bb414 (patch) | |
| tree | e15ad5238fc417bed5cbe7772e300f6ed72dda03 /test | |
| parent | Fix indent (diff) | |
| download | sharkey-95733c9490db64b4ec583a5ea1a3945f4e9bb414.tar.gz sharkey-95733c9490db64b4ec583a5ea1a3945f4e9bb414.tar.bz2 sharkey-95733c9490db64b4ec583a5ea1a3945f4e9bb414.zip | |
[MFM] Better hashtag parsing
Diffstat (limited to 'test')
| -rw-r--r-- | test/mfm.ts | 8 |
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, [ |