Fixed broken singleAsteriskRegex. Fixes #9918 (#9920)

This commit is contained in:
Anatoly Ressin 2016-07-25 22:35:15 +03:00 committed by Richard Knoll
parent 591959507a
commit d182d7fa8d

View File

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