Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit c259701

Browse files
committed
fix: Check for drive prefix at start of string only, complete doc template
1 parent 1d75073 commit c259701

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/project-manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ export class ProjectConfiguration {
862862
this.expectedFilePaths = new Set(configParseResult.fileNames);
863863

864864
const options = configParseResult.options;
865-
const pathResolver = /[a-z]:\//i.test(base) ? path.win32 : path.posix;
865+
const pathResolver = /^[a-z]:\//i.test(base) ? path.win32 : path.posix;
866866
this.typeRoots = options.typeRoots ?
867867
options.typeRoots.map((r: string) => pathResolver.resolve(this.rootFilePath, r)) :
868868
[];
@@ -894,8 +894,8 @@ export class ProjectConfiguration {
894894
private ensuredBasicFiles = false;
895895

896896
/**
897-
* [isExpectedDeclarationFile description]
898-
* @param {string} fileName [description]
897+
* Determines if a fileName is a declaration file within expected files or type roots
898+
* @param fileName
899899
*/
900900
public isExpectedDeclarationFile(fileName: string) {
901901
if (isDeclarationFile(fileName)) {

0 commit comments

Comments
 (0)