Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit d8658e9

Browse files
committed
fixup! fix($parse): correctly escape unsafe identifier characters
1 parent e2e20c8 commit d8658e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ ASTCompiler.prototype = {
12611261
},
12621262

12631263
nonComputedMember: function(left, right) {
1264-
var SAFE_IDENTIFIER = /^[$_a-zA-Z][$_a-zA-Z0-9]$/;
1264+
var SAFE_IDENTIFIER = /^[$_a-zA-Z][$_a-zA-Z0-9]*$/;
12651265
var UNSAFE_CHARACTERS = /[^$_a-zA-Z0-9]/g;
12661266
if (SAFE_IDENTIFIER.test(right)) {
12671267
return left + '.' + right;

0 commit comments

Comments
 (0)