Skip to content

Commit b616178

Browse files
committed
fix: use more explicit v-bind syntax
1 parent cf67926 commit b616178

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lexers/html-lexer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default class HTMLLexer extends BaseLexer {
4848
// traverse all tags to filter bind attribute
4949
$('*').each((index, node) => {
5050
const attributes = node.attributes.filter(
51-
(item) => item.name.startsWith(':') || item.name.startsWith('v-')
51+
(item) => item.name.startsWith(':') || item.name.startsWith('v-bind:')
5252
)
5353
if (attributes.length > 0) {
5454
// there are calculation attributes.

test/lexers/html-lexer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('HTMLLexer', () => {
109109
<button :aria-label="t('b_a_l', 'button aria label')">
110110
button label
111111
</button>
112-
<button v-aria-label="$t('button v-bind aria label')">
112+
<button v-bind:aria-label="$t('button v-bind aria label')">
113113
button label form v-bind
114114
</button>
115115
</template>

0 commit comments

Comments
 (0)