@vue-macros/volar
Advanced tools
Comparing version 0.18.5 to 0.18.6
@@ -440,4 +440,8 @@ // src/jsx-directive.ts | ||
for (const { attribute } of nodes) { | ||
const attributeName = attribute.name.getText(sfc[source]?.ast).replaceAll(/-([A-Za-z])/g, (_, name) => name.toUpperCase()); | ||
let attributeName = attribute.name.getText(sfc[source]?.ast); | ||
if (attributeName.includes("-")) { | ||
attributeName = attributeName.replaceAll( | ||
/-([A-Za-z])/g, | ||
(_, name) => name.toUpperCase() | ||
); | ||
(0, import_language_core7.replaceSourceRange)( | ||
@@ -517,3 +521,3 @@ codes, | ||
vOnWithModifiers.push({ node, attribute }); | ||
} else if (/\S+[_|-]\S+/.test(attributeName)) { | ||
} else if (/^(?!v-)\S+[_|-]\S+/.test(attributeName)) { | ||
vBindNodes.push({ node, attribute }); | ||
@@ -520,0 +524,0 @@ } |
{ | ||
"name": "@vue-macros/volar", | ||
"version": "0.18.5", | ||
"version": "0.18.6", | ||
"packageManager": "pnpm@8.12.1", | ||
@@ -5,0 +5,0 @@ "description": "Volar plugin for Vue Macros.", |
40682
1233