[MFM] Better hashtag parsing: Ignore single quotation
This commit is contained in:
parent
9740db8685
commit
cb6a4037f2
2 changed files with 9 additions and 1 deletions
|
@ -365,6 +365,14 @@ describe('MFM', () => {
|
|||
]);
|
||||
});
|
||||
|
||||
it('ignore single quote', () => {
|
||||
const tokens = analyze('#foo\'');
|
||||
assert.deepStrictEqual(tokens, [
|
||||
leaf('hashtag', { hashtag: 'foo' }),
|
||||
text('\''),
|
||||
]);
|
||||
});
|
||||
|
||||
it('ignore double quote', () => {
|
||||
const tokens = analyze('#foo"');
|
||||
assert.deepStrictEqual(tokens, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue