Skip to content

Commit c7101b7

Browse files
committed
Fix inline type not handling multiple types in args
1 parent c96e1a4 commit c7101b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/helpers/inline-type.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const supportedTypes = {
2424
*/
2525
const editorEnricher = {
2626
id: 'InlineTypeEnricher',
27-
pattern: InlineHelper.compose('TYPE', `(?<type>\\w+)(?<args>(\\s+([a-zA-Z0]+))+)s*`, InlineEffects.effectPropertyGroups),
27+
pattern: InlineHelper.compose('TYPE', `(?<type>\\w+)(?<args>\\s+[a-zA-Z0]+(?:[,\\s]+[a-zA-Z0]+)*)\\s*`, InlineEffects.effectPropertyGroups),
2828
enricher: (match, options) => {
2929
const type = match.groups.type.toLowerCase();
3030
const args = match.groups.args.trimStart();

0 commit comments

Comments
 (0)