diff --git a/src/app/FakeLib/Globbing/Globbing.fs b/src/app/FakeLib/Globbing/Globbing.fs index e65c516518b..5acbd6e64b1 100644 --- a/src/app/FakeLib/Globbing/Globbing.fs +++ b/src/app/FakeLib/Globbing/Globbing.fs @@ -115,7 +115,7 @@ let internal isMatch pattern path : bool = [ "dirwildcard", (@"\\\*\\\*(/|\\\\)", @"(.*(/|\\))?") "stardotstar", (@"\\\*\\.\\\*", @"([^\\/]*)") - "wildcard", (@"\\\*", @"([^.\\/]*)") + "wildcard", (@"\\\*", @"([^\\/]*)") ] |> List.map(fun (key, reg) -> let pattern, replace = reg let pattern = sprintf "(?<%s>%s)" key pattern diff --git a/src/test/Test.FAKECore/Globbing/GlobbingSpecs.cs b/src/test/Test.FAKECore/Globbing/GlobbingSpecs.cs index 557509ebbb8..04a4eb1df3f 100644 --- a/src/test/Test.FAKECore/Globbing/GlobbingSpecs.cs +++ b/src/test/Test.FAKECore/Globbing/GlobbingSpecs.cs @@ -102,5 +102,11 @@ static void IsNotMatch(string pattern, string[] files) "root/subdir/more/another/foo.bar", "root/another/subdir/more/foo.bar" }); + + It should_match_any_file_type = + () => IsMatch("/some/random/path/**/Properties/*", new[] { + "/some/random/path/somewhere/Properties/AssemblyInfo.cs" + }); + } }