diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-06-17 20:15:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-06-17 20:15:19 +0900 |
| commit | 285d0d13f9c3af4f709e0fca6ce39fcef90d90e0 (patch) | |
| tree | 236a35fce06f20a771b2a730701d742db16bf901 /test | |
| parent | Fix MFM strike parsing (diff) | |
| download | sharkey-285d0d13f9c3af4f709e0fca6ce39fcef90d90e0.tar.gz sharkey-285d0d13f9c3af4f709e0fca6ce39fcef90d90e0.tar.bz2 sharkey-285d0d13f9c3af4f709e0fca6ce39fcef90d90e0.zip | |
Fix MFM URL 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 c772a62dcb..be8b65264a 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -804,6 +804,14 @@ describe('MFM', () => { ]); }); + it('ignore trailing periods', () => { + const tokens = parse('https://example.com...'); + assert.deepStrictEqual(tokens, [ + leaf('url', { url: 'https://example.com' }), + text('...') + ]); + }); + it('with comma', () => { const tokens = parse('https://example.com/foo?bar=a,b'); assert.deepStrictEqual(tokens, [ |