summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-23 16:02:17 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-23 16:02:17 +0900
commit1d1024c57a2067d7fe0f6e1e97cd8df584481892 (patch)
tree1de30944524c24c6b541625d136ca387e86a3504 /test
parentUpdate manage.ja.md (diff)
downloadsharkey-1d1024c57a2067d7fe0f6e1e97cd8df584481892.tar.gz
sharkey-1d1024c57a2067d7fe0f6e1e97cd8df584481892.tar.bz2
sharkey-1d1024c57a2067d7fe0f6e1e97cd8df584481892.zip
[MFM] Improve hashtag detection
Resolve #3387
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 a40f769f80..8ca09c7417 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -204,6 +204,13 @@ describe('Text', () => {
text('!'),
], tokens);
});
+
+ it('disallow number only', () => {
+ const tokens = analyze('#123');
+ assert.deepEqual([
+ text('#123'),
+ ], tokens);
+ });
});
describe('quote', () => {