This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1261,7 +1261,7 @@ ASTCompiler.prototype = {
1261
1261
} ,
1262
1262
1263
1263
nonComputedMember : function ( left , right ) {
1264
- var SAFE_IDENTIFIER = / ^ [ $ _ a - z A - Z ] [ $ _ a - z A - Z 0 - 9 ] $ / ;
1264
+ var SAFE_IDENTIFIER = / ^ [ $ _ a - z A - Z ] [ $ _ a - z A - Z 0 - 9 ] * $ / ;
1265
1265
var UNSAFE_CHARACTERS = / [ ^ $ _ a - z A - Z 0 - 9 ] / g;
1266
1266
if ( SAFE_IDENTIFIER . test ( right ) ) {
1267
1267
return left + '.' + right ;
Original file line number Diff line number Diff line change @@ -3909,10 +3909,10 @@ describe('parser', function() {
3909
3909
beforeEach ( module ( function ( $parseProvider ) {
3910
3910
isIdentifierStartFn = jasmine .
3911
3911
createSpy ( 'isIdentifierStart' ) .
3912
- and . callFake ( function ( ch , cp ) { return isIdentifierStartRe . test ( ch ) ; } ) ;
3912
+ and . callFake ( function ( ch , cp ) { return isIdentifierStartRe . test ( ch ) ; } ) ;
3913
3913
isIdentifierContinueFn = jasmine .
3914
3914
createSpy ( 'isIdentifierContinue' ) .
3915
- and . callFake ( function ( ch , cp ) { return isIdentifierContinueRe . test ( ch ) ; } ) ;
3915
+ and . callFake ( function ( ch , cp ) { return isIdentifierContinueRe . test ( ch ) ; } ) ;
3916
3916
3917
3917
$parseProvider . setIdentifierFns ( isIdentifierStartFn , isIdentifierContinueFn ) ;
3918
3918
csp ( ) . noUnsafeEval = cspEnabled ;
You can’t perform that action at this time.
0 commit comments