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 {
40184018 * @returns The unescaped identifier text.
40194019 */
40204020 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 ;
40224023 }
40234024
40244025 /**
You can’t perform that action at this time.
0 commit comments