fix identifier re

This commit is contained in:
Evan You 2016-06-16 12:41:11 -04:00
parent 5c3e208cf8
commit f058a21b70

View File

@ -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> {