Fixed broken singleAsteriskRegex. Fixes #9918 (#9920)

This commit is contained in:
Anatoly Ressin
2016-07-25 22:35:15 +03:00
committed by Wesley Wigham
parent 6a6f5db814
commit 8cbbcd03f0

View File

@@ -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") {