File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4018,7 +4018,8 @@ namespace ts {
4018
4018
* @returns The unescaped identifier text.
4019
4019
*/
4020
4020
export function unescapeLeadingUnderscores ( identifier : UnderscoreEscapedString ) : string {
4021
- return ( identifier as string ) . length >= 3 && ( identifier as string ) . charCodeAt ( 0 ) === CharacterCodes . _ && ( identifier as string ) . charCodeAt ( 1 ) === CharacterCodes . _ && ( identifier as string ) . charCodeAt ( 2 ) === CharacterCodes . _ ? ( identifier as string ) . substr ( 1 ) : identifier as string ;
4021
+ const id = identifier as string ;
4022
+ return id . length >= 3 && id . charCodeAt ( 0 ) === CharacterCodes . _ && id . charCodeAt ( 1 ) === CharacterCodes . _ && id . charCodeAt ( 2 ) === CharacterCodes . _ ? id . substr ( 1 ) : id ;
4022
4023
}
4023
4024
4024
4025
/**
You can’t perform that action at this time.
0 commit comments