Skip to content

Commit

Permalink
fix: πŸ› support for self closing markup/template tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisermann committed Oct 31, 2019
1 parent 7f329d2 commit d109a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autoProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function autoPreprocess(
const optionsCache: Record<string, any> = {};
const transformers = rest.transformers || (rest as Transformers);
const markupPattern = new RegExp(
`<${markupTagName}([\\s\\S]*?)>([\\s\\S]*)<\\/${markupTagName}>`,
`<${markupTagName}([\\s\\S]*?)(?:>([\\s\\S]*)<\\/${markupTagName}>|/>)`,
);

if (aliases && aliases.length) {
Expand Down

0 comments on commit d109a89

Please sign in to comment.