[MFM] Fix hashtag detection
This commit is contained in:
parent
a479ad357c
commit
dbbc416095
2 changed files with 8 additions and 1 deletions
|
@ -205,6 +205,13 @@ describe('Text', () => {
|
|||
], tokens);
|
||||
});
|
||||
|
||||
it('allow including number', () => {
|
||||
const tokens = analyze('#foo123');
|
||||
assert.deepEqual([
|
||||
node('hashtag', { hashtag: 'foo123' }),
|
||||
], tokens);
|
||||
});
|
||||
|
||||
it('disallow number only', () => {
|
||||
const tokens = analyze('#123');
|
||||
assert.deepEqual([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue