Skip to content

Commit aeb5264

Browse files
author
Andy
authored
Consistently use variable mangledScopedPackageSeparator instead of magic "__" string (microsoft#16713)
1 parent fd22a88 commit aeb5264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/moduleNameResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ namespace ts {
995995
export function getPackageNameFromAtTypesDirectory(mangledName: string): string {
996996
const withoutAtTypePrefix = removePrefix(mangledName, "@types/");
997997
if (withoutAtTypePrefix !== mangledName) {
998-
return withoutAtTypePrefix.indexOf("__") !== -1 ?
998+
return withoutAtTypePrefix.indexOf(mangledScopedPackageSeparator) !== -1 ?
999999
"@" + withoutAtTypePrefix.replace(mangledScopedPackageSeparator, ts.directorySeparator) :
10001000
withoutAtTypePrefix;
10011001
}

0 commit comments

Comments
 (0)