Skip to content

Commit

Permalink
fix: patch invalid : character in tag name
Browse files Browse the repository at this point in the history
close #1435
  • Loading branch information
johnsoncodehk committed Jun 12, 2022
1 parent 2180f29 commit 239d592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-code-gen/src/generators/template.ts
Expand Up @@ -125,7 +125,7 @@ export function generate(
const tagRanges = tagOffsets.map(offset => ({ start: offset, end: offset + tagName.length }));
const isNamespacedTag = tagName.indexOf('.') >= 0;

const var_componentVar = capitalize(camelize(tagName));
const var_componentVar = capitalize(camelize(tagName.replace(/:/g, '-')));
const var_emit = `__VLS_${elementIndex++}`;

if (isNamespacedTag) {
Expand Down

0 comments on commit 239d592

Please sign in to comment.