diff --git a/src/index.ts b/src/index.ts index 59dc6e1a..b13a527d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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; }