[MFM] Better hashtag detection

This commit is contained in:
syuilo 2018-12-02 06:53:57 +09:00
parent 10fb399588
commit c58027e521
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 3 additions and 3 deletions

View file

@ -187,9 +187,9 @@ describe('Text', () => {
});
it('with text (zenkaku)', () => {
const tokens = analyze('こんにちは #世界');
const tokens = analyze('こんにちは#世界');
assert.deepEqual([
text('こんにちは '),
text('こんにちは'),
node('hashtag', { hashtag: '世界' })
], tokens);
});