Skip to content

Commit d182d7f

Browse files
Artazorriknoll
authored andcommitted
Fixed broken singleAsteriskRegex. Fixes #9918 (#9920)
1 parent 5919595 commit d182d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ namespace ts {
928928
* [^./] # matches everything up to the first . character (excluding directory seperators)
929929
* (\\.(?!min\\.js$))? # matches . characters but not if they are part of the .min.js file extension
930930
*/
931-
const singleAsteriskRegexFragmentFiles = "([^./]*(\\.(?!min\\.js$))?)*";
931+
const singleAsteriskRegexFragmentFiles = "([^./]|(\\.(?!min\\.js$))?)*";
932932
const singleAsteriskRegexFragmentOther = "[^/]*";
933933

934934
export function getRegularExpressionForWildcard(specs: string[], basePath: string, usage: "files" | "directories" | "exclude") {

0 commit comments

Comments
 (0)