[MFM] Better hashtag detection
This commit is contained in:
parent
10fb399588
commit
c58027e521
2 changed files with 3 additions and 3 deletions
|
@ -187,9 +187,9 @@ describe('Text', () => {
|
|||
});
|
||||
|
||||
it('with text (zenkaku)', () => {
|
||||
const tokens = analyze('こんにちは #世界');
|
||||
const tokens = analyze('こんにちは#世界');
|
||||
assert.deepEqual([
|
||||
text('こんにちは '),
|
||||
text('こんにちは'),
|
||||
node('hashtag', { hashtag: '世界' })
|
||||
], tokens);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue