From 1df9c1005f6be20e03a55e3ba203e5cdc1fa9eba Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 20 Jan 2019 18:06:04 +0900 Subject: [MFM] __ 構文はアルファベットのみに MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/mfm.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/mfm.ts b/test/mfm.ts index bacce017c2..54096e6bb0 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -187,6 +187,13 @@ describe('MFM', () => { ]); }); + it('with underscores (ensure it allows alphabet only)', () => { + const tokens = analyze('(=^・__________・^=)'); + assert.deepStrictEqual(tokens, [ + text('(=^・__________・^=)') + ]); + }); + it('mixed syntax', () => { const tokens = analyze('**foo__'); assert.deepStrictEqual(tokens, [ -- cgit v1.2.3-freya