fix(compiler-core): fix parsing for directive with dynamic argument containing dots

This commit is contained in:
Evan You
2020-06-12 15:59:13 -04:00
parent f39ad0b539
commit 0d26413433
2 changed files with 75 additions and 1 deletions

View File

@@ -599,7 +599,7 @@ function parseAttribute(
const loc = getSelection(context, start)
if (!context.inVPre && /^(v-|:|@|#)/.test(name)) {
const match = /(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)([^\.]+))?(.+)?$/i.exec(
const match = /(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(
name
)!