Skip to content

Commit

Permalink
Update glob pattern matching to be case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkozlenko committed Nov 4, 2024
1 parent b37147b commit 3c4e121
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<VersionPrefix>1.0.1</VersionPrefix>
<VersionSuffix>preview</VersionSuffix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>
<PropertyGroup>
<AnalysisMode>Recommended</AnalysisMode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static FileInfo[] FindMatchingFiles(string directoryPath, string pattern
}

var directory = new DirectoryInfo(directoryPath);
var matcher = new Matcher(StringComparison.Ordinal).AddInclude(pattern);
var matcher = new Matcher().AddInclude(pattern);
var match = matcher.Execute(new DirectoryInfoWrapper(directory));

return match.Files.Select(x => new FileInfo(Path.GetFullPath(Path.Combine(directoryPath, x.Path)))).ToArray();
Expand Down
2 changes: 1 addition & 1 deletion src/Cotopaxi.Cosmos.PackageManagement/PackageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private static async Task<FrozenSet<PackageEntry>> CollectPackageEntriesAsync(Fi

private static string[] FindMatchingFiles(DirectoryInfo directory, string pattern)
{
var matcher = new Matcher(StringComparison.Ordinal).AddInclude(pattern);
var matcher = new Matcher().AddInclude(pattern);
var match = matcher.Execute(new DirectoryInfoWrapper(directory));

return match.Files.Select(x => Path.GetFullPath(Path.Combine(directory.FullName, x.Path))).ToArray();
Expand Down

0 comments on commit 3c4e121

Please sign in to comment.