Skip to content

Commit f058a21

Browse files
committed
fix identifier re
1 parent 5c3e208 commit f058a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/error-detector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const prohibitedKeywordRE = new RegExp('\\b' + (
99
'extends,finally,continue,debugger,function,arguments'
1010
).split(',').join('\\b|\\b') + '\\b')
1111
// check valid identifier for v-for
12-
const identRE = /[^\w$\.](?:[A-Za-z_$][\w$]*)/
12+
const identRE = /[A-Za-z_$][\w$]*/
1313

1414
// detect problematic expressions in a template
1515
export function detectErrors (ast: ?ASTNode): Array<string> {

0 commit comments

Comments
 (0)