fix(compiler-core): pick last char when dynamic directive doesn't close (#4507)
This commit is contained in:
parent
1c4f0f0afd
commit
5d262e08d5
@ -6260,7 +6260,7 @@ Object {
|
||||
Object {
|
||||
"arg": Object {
|
||||
"constType": 0,
|
||||
"content": "se",
|
||||
"content": "sef",
|
||||
"isStatic": false,
|
||||
"loc": Object {
|
||||
"end": Object {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user