Skip to content

Commit

Permalink
Dont exclude directories starting with underscore (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Jun 20, 2022
1 parent 5e81416 commit e4c04ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591</NoWarn>
<Version>24.4.0</Version>
<Version>24.5.0</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Markdown, Snippets, mdsnippets, documentation, MarkdownSnippets</PackageTags>
<Description>Extracts snippets from code files and merges them into markdown documents.</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ public static class DefaultDirectoryExclusions
public static bool ShouldExcludeDirectory(string path)
{
var suffix = Path.GetFileName(path).ToLowerInvariant();
return suffix.StartsWith("_") ||
suffix.StartsWith(".") ||
return suffix.StartsWith(".") ||
suffix is
"packages" or
"node_modules" or
Expand Down

0 comments on commit e4c04ff

Please sign in to comment.