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

Fix regex typo for Minimum TypeScript Version #266

Merged
merged 1 commit into from
Jan 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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