Skip to content

Commit

Permalink
fix(typescript-estree): correct persisted parse for windows (#1406)
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 authored and bradzacher committed Jan 6, 2020
1 parent a2c53ae commit 1a42f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/create-program/shared.ts
Expand Up @@ -32,7 +32,7 @@ const correctPathCasing = useCaseSensitiveFileNames

function getCanonicalFileName(filePath: string): CanonicalPath {
let normalized = path.normalize(filePath);
if (normalized.endsWith('/')) {
if (normalized.endsWith(path.sep)) {
normalized = normalized.substr(0, normalized.length - 1);
}
return correctPathCasing(normalized) as CanonicalPath;
Expand Down

0 comments on commit 1a42f3d

Please sign in to comment.