Skip to content

Commit 8c80506

Browse files
authored
Only filter out detection rules that are within an '_deprecated' folder (#885)
* Only filter out detection rules that are within an '_deprecated' folder * Revert unintented change
1 parent 4976fbc commit 8c80506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Markdown/Extensions/DetectionRules/DetectionRulesDocsBuilderExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private IReadOnlyCollection<ITocItem> ReadDetectionRuleFolder(ConfigurationFile
124124
.Where(f => !f.Directory!.Attributes.HasFlag(FileAttributes.Hidden) && !f.Directory!.Attributes.HasFlag(FileAttributes.System))
125125
.Where(f => f.Extension is ".md" or ".toml")
126126
.Where(f => f.Name != "README.md")
127-
.Where(f => !f.FullName.Contains("_deprecated"))
127+
.Where(f => !f.FullName.Contains($"{Path.DirectorySeparatorChar}_deprecated{Path.DirectorySeparatorChar}"))
128128
.Select(f =>
129129
{
130130
var relativePath = Path.GetRelativePath(sourceDirectory.FullName, f.FullName);

0 commit comments

Comments
 (0)