[MFM] Improve hashtag detection

Resolve #3387
This commit is contained in:
syuilo 2018-11-23 16:02:17 +09:00
parent 73df6e0347
commit 1d1024c57a
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 8 additions and 0 deletions

View file

@ -204,6 +204,13 @@ describe('Text', () => {
text('!'),
], tokens);
});
it('disallow number only', () => {
const tokens = analyze('#123');
assert.deepEqual([
text('#123'),
], tokens);
});
});
describe('quote', () => {