summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-01-25 16:41:51 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-01-25 16:41:51 +0900
commit42cd7c8a752b801a51e7e3718e4712251e66e2df (patch)
tree6b9b124a0f30151bf482d9b00284dc1873b905c0 /test
parent[Test] Add sone streaming tests (diff)
downloadmisskey-42cd7c8a752b801a51e7e3718e4712251e66e2df.tar.gz
misskey-42cd7c8a752b801a51e7e3718e4712251e66e2df.tar.bz2
misskey-42cd7c8a752b801a51e7e3718e4712251e66e2df.zip
[MFM] Improve italic syntax detection
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts7
1 files changed, 7 insertions, 0 deletions
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'),
+ ]);
+ });
});
});