Skip to content

Commit daf4b46

Browse files
tanhauhauConduitry
authored andcommitted
name.slice to slug
1 parent dda9a53 commit daf4b46

File tree

1 file changed

+1
-1
lines changed
  • src/compiler/parse/state

1 file changed

+1
-1
lines changed

src/compiler/parse/state/tag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default function tag(parser: Parser) {
8181
parser.current().children.length
8282
) {
8383
parser.error({
84-
code: `invalid-${name.slice(7)}-content`,
84+
code: `invalid-${slug}-content`,
8585
message: `<${name}> cannot have children`
8686
}, parser.current().children[0].start);
8787
}

0 commit comments

Comments
 (0)