Skip to content

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 Nov 29, 2021
1 parent 1a20a2b commit b00dcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dtslint/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 b00dcaa

Please sign in to comment.