From 165758f6e823d48d62727b6f287013c0377d8366 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 17 Dec 2019 13:59:56 -0800 Subject: [PATCH] Fix typo --- src/compiler/moduleSpecifiers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/moduleSpecifiers.ts b/src/compiler/moduleSpecifiers.ts index 71a818aad4dd4..339858a4ac855 100644 --- a/src/compiler/moduleSpecifiers.ts +++ b/src/compiler/moduleSpecifiers.ts @@ -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;