From 3b022b789e3c6e3fdbfc8db441bcbb7297f6bab8 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 6 Jan 2020 16:31:01 -0600 Subject: [PATCH] Fix regex typo (#266) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }