Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Fix regex typo (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbranch authored and sandersn committed Jan 6, 2020
1 parent eb86e5b commit 3b022b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function assertPathIsNotBanned(dirPath: string) {
}

function getTypeScriptVersionFromComment(text: string): AllTypeScriptVersion | undefined {
const match = text.match(/\/\/ (?:Minimum)? TypeScript Version: /);
const match = text.match(/\/\/ (?:Minimum )?TypeScript Version: /);
if (!match) {
return undefined;
}
Expand Down

0 comments on commit 3b022b7

Please sign in to comment.