mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 20:17:52 +08:00
fix identifier re
This commit is contained in:
parent
5c3e208cf8
commit
f058a21b70
@ -9,7 +9,7 @@ const prohibitedKeywordRE = new RegExp('\\b' + (
|
||||
'extends,finally,continue,debugger,function,arguments'
|
||||
).split(',').join('\\b|\\b') + '\\b')
|
||||
// check valid identifier for v-for
|
||||
const identRE = /[^\w$\.](?:[A-Za-z_$][\w$]*)/
|
||||
const identRE = /[A-Za-z_$][\w$]*/
|
||||
|
||||
// detect problematic expressions in a template
|
||||
export function detectErrors (ast: ?ASTNode): Array<string> {
|
||||
|
Loading…
Reference in New Issue
Block a user