From 42cd7c8a752b801a51e7e3718e4712251e66e2df Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 25 Jan 2019 16:41:51 +0900 Subject: [MFM] Improve italic syntax detection --- test/mfm.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/mfm.ts b/test/mfm.ts index 789fb898c8..a4b4a13973 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -966,6 +966,13 @@ describe('MFM', () => { text('*foo_'), ]); }); + + it('ignore snake_case string', () => { + const tokens = analyze('foo_bar_baz'); + assert.deepStrictEqual(tokens, [ + text('foo_bar_baz'), + ]); + }); }); }); -- cgit v1.2.3-freya