summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index 8d5496a5f8..7db94b45e1 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -611,6 +611,14 @@ describe('MFM', () => {
text('(#123)'),
]);
});
+
+ it('ignore slash', () => {
+ const tokens = parse('#foo/bar');
+ assert.deepStrictEqual(tokens, [
+ leaf('hashtag', { hashtag: 'foo' }),
+ text('/bar'),
+ ]);
+ });
});
describe('quote', () => {