Skip to content

Commit

Permalink
fix identifier re
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 16, 2016
1 parent 5c3e208 commit f058a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/error-detector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit f058a21

Please sign in to comment.