Skip to content

Commit

Permalink
fix: code review
Browse files Browse the repository at this point in the history
  • Loading branch information
winchesHe committed Dec 1, 2024
1 parent 432a641 commit 25f356c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/docs/components/docs/components/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function checkIsElement(lineContent: string) {

function getElementName(lineContent: string) {
const startElementName = lineContent.match(/^\s*<([a-zA-Z.]+)/);
const endElementName = lineContent.match(/^\s*<\/[a-zA-Z.]+>/);
const endElementName = lineContent.match(/^\s*<\/([a-zA-Z.]+)>/);

return {
startElementName: startElementName?.[1] || (lineContent.includes("<>") ? "<>" : ""),
Expand Down

0 comments on commit 25f356c

Please sign in to comment.