Skip to content
Snippets Groups Projects
Commit 96bc7205 authored by marihachi's avatar marihachi
Browse files

fix bug of #42

parent bc295b0f
No related branches found
No related tags found
No related merge requests found
......@@ -371,7 +371,7 @@ fnArgs
}
fnArg
= k:$([a-z0-9_]i)+ "=" v:$([a-z0-9_]i)+
= k:$([a-z0-9_]i)+ "=" v:$([a-z0-9_.]i)+
{
return { k, v };
}
......
......@@ -474,6 +474,16 @@ describe('parser', () => {
];
assert.deepStrictEqual(mfm.parse(input), output);
});
it('with a string argument', () => {
const input = '[spin.speed=1.1s a]';
const output = [
FN('spin', { speed: '1.1s' }, [
TEXT('a')
])
];
assert.deepStrictEqual(mfm.parse(input), output);
});
});
it('composite', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment