mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix typo
This commit is contained in:
@@ -171,7 +171,7 @@ namespace ts.moduleSpecifiers {
|
||||
return match ? match.length : 0;
|
||||
}
|
||||
|
||||
function comparePathsByNumberOfDirectrorySeparators(a: string, b: string) {
|
||||
function comparePathsByNumberOfDirectorySeparators(a: string, b: string) {
|
||||
return compareValues(
|
||||
numberOfDirectorySeparators(a),
|
||||
numberOfDirectorySeparators(b)
|
||||
@@ -227,7 +227,7 @@ namespace ts.moduleSpecifiers {
|
||||
});
|
||||
if (pathsInDirectory) {
|
||||
if (pathsInDirectory.length > 1) {
|
||||
pathsInDirectory.sort(comparePathsByNumberOfDirectrorySeparators);
|
||||
pathsInDirectory.sort(comparePathsByNumberOfDirectorySeparators);
|
||||
}
|
||||
sortedPaths.push(...pathsInDirectory);
|
||||
}
|
||||
@@ -237,7 +237,7 @@ namespace ts.moduleSpecifiers {
|
||||
}
|
||||
if (allFileNames.size) {
|
||||
const remainingPaths = arrayFrom(allFileNames.values());
|
||||
if (remainingPaths.length > 1) remainingPaths.sort(comparePathsByNumberOfDirectrorySeparators);
|
||||
if (remainingPaths.length > 1) remainingPaths.sort(comparePathsByNumberOfDirectorySeparators);
|
||||
sortedPaths.push(...remainingPaths);
|
||||
}
|
||||
return sortedPaths;
|
||||
|
||||
Reference in New Issue
Block a user