[MFM] __ 構文はアルファベットのみに

This commit is contained in:
syuilo 2019-01-20 18:06:04 +09:00
parent 53481accf1
commit 1df9c1005f
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
3 changed files with 9 additions and 1 deletions

View file

@ -187,6 +187,13 @@ describe('MFM', () => {
]);
});
it('with underscores (ensure it allows alphabet only)', () => {
const tokens = analyze('(=^・__________・^=)');
assert.deepStrictEqual(tokens, [
text('(=^・__________・^=)')
]);
});
it('mixed syntax', () => {
const tokens = analyze('**foo__');
assert.deepStrictEqual(tokens, [