Skip to content

Truncated element names that contains hyphen as Vuetify widgets #494

@crystalfp

Description

@crystalfp

Describe the bug
If the element in the template part of a .vue file contains an hyphen, the error message shows only the first part of the element name. This happens with Vuetify widgets that have names like v-dialog

To Reproduce
Steps to reproduce the behavior:

  1. What is the exact code you are analyzing?
    A vue file containing:
<template>
<v-dialog v-model="isOpen" width="26rem">
</v-dialog>
</template>
  1. What is the output you are getting?
-  vue-strong ~ multi-attribute elements
   src\components\About.vue
   👉 Elements with multiple attributes should span multiple lines, with one attribute per line.
   Element <v> should have its attributes on separate lines 🚨

Expected behavior

 Element <v-dialog> should have its attributes on separate lines 🚨

Screenshots
If applicable, add screenshots to help explain your problem.

Used version number of vue-mess-detector:
0.66.0

Used version number of node & npm:

  • node: 23.4.0
  • npm: 11.0.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions