fix: do not use lookbehind regex yet

This commit is contained in:
Evan You
2019-09-26 12:22:31 -04:00
parent 7c030ee899
commit 2e3a1ff3c3
2 changed files with 5 additions and 5 deletions

View File

@@ -259,7 +259,7 @@ describe('compiler: transform v-for', () => {
})
test('de-structured value', () => {
const source = '<span v-for="( { id, key })in items" />'
const source = '<span v-for="( { id, key }) in items" />'
const forNode = parseWithForTransform(source)
const valueIndex = source.indexOf('{ id, key }')