Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aeb5264

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

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/moduleNameResolver.ts‎

Copy file name to clipboardExpand all lines: src/compiler/moduleNameResolver.ts
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.