Skip to content

Commit a06fa72

Browse files
authored
also apply leading underscore logic to end tags
1 parent 55e13c1 commit a06fa72

File tree

1 file changed

+1
-1
lines changed
  • packages/babel-plugin-transform-jsx-to-htm

1 file changed

+1
-1
lines changed

packages/babel-plugin-transform-jsx-to-htm/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default function jsxToHtmBabelPlugin({ types: t }, options = {}) {
144144
}
145145
}
146146

147-
if (name.match(/^[A-Z]/)) {
147+
if (name.match(/^[_A-Z]/)) {
148148
raw('</');
149149
expr(t.identifier(name));
150150
raw('>');

0 commit comments

Comments
 (0)