From 68d4243c6f063479076cfa2f2fa18688c3500529 Mon Sep 17 00:00:00 2001 From: Anatoly Ressin Date: Sun, 24 Jul 2016 18:45:51 +0300 Subject: [PATCH] Fixed broken singleAsteriskRegex. Fixes #9918 --- src/compiler/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 18c6a98991d45..dee8d9c8a961c 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -938,7 +938,7 @@ namespace ts { * [^./] # matches everything up to the first . character (excluding directory seperators) * (\\.(?!min\\.js$))? # matches . characters but not if they are part of the .min.js file extension */ - const singleAsteriskRegexFragmentFiles = "([^./]*(\\.(?!min\\.js$))?)*"; + const singleAsteriskRegexFragmentFiles = "([^./]|(\\.(?!min\\.js$))?)*"; const singleAsteriskRegexFragmentOther = "[^/]*"; export function getRegularExpressionForWildcard(specs: string[], basePath: string, usage: "files" | "directories" | "exclude") {