Skip to content

Commit d109a89

Browse files
committed
fix: 🐛 support for self closing markup/template tag
1 parent 7f329d2 commit d109a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/autoProcess.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function autoPreprocess(
8383
const optionsCache: Record<string, any> = {};
8484
const transformers = rest.transformers || (rest as Transformers);
8585
const markupPattern = new RegExp(
86-
`<${markupTagName}([\\s\\S]*?)>([\\s\\S]*)<\\/${markupTagName}>`,
86+
`<${markupTagName}([\\s\\S]*?)(?:>([\\s\\S]*)<\\/${markupTagName}>|/>)`,
8787
);
8888

8989
if (aliases && aliases.length) {

0 commit comments

Comments
 (0)