fix(compiler-core): allow unicode to appear in identifiers (#3443)

fix #3440
This commit is contained in:
HcySunYang
2021-03-26 05:24:18 +08:00
committed by GitHub
parent 7715c49af9
commit ebedcccdc0
2 changed files with 8 additions and 1 deletions

View File

@@ -507,6 +507,13 @@ describe('compiler: transform v-model', () => {
)
})
test('allow unicode', () => {
const onError = jest.fn()
parseWithVModel('<span v-model="变.量" />', { onError })
expect(onError).toHaveBeenCalledTimes(0)
})
test('used on scope variable', () => {
const onError = jest.fn()
parseWithVModel('<span v-for="i in list" v-model="i" />', {