fix(compiler-core): pick last char when dynamic directive doesn't close (#4507)
This commit is contained in:
committed by
GitHub
parent
1c4f0f0afd
commit
5d262e08d5
@@ -814,9 +814,10 @@ function parseAttribute(
|
||||
context,
|
||||
ErrorCodes.X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END
|
||||
)
|
||||
content = content.substr(1)
|
||||
} else {
|
||||
content = content.substr(1, content.length - 2)
|
||||
}
|
||||
|
||||
content = content.substr(1, content.length - 2)
|
||||
} else if (isSlot) {
|
||||
// #1241 special case for v-slot: vuetify relies extensively on slot
|
||||
// names containing dots. v-slot doesn't have any modifiers and Vue 2.x
|
||||
|
||||
Reference in New Issue
Block a user