Skip to content

Commit 5136a94

Browse files
add building block rules
1 parent 19bc86e commit 5136a94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

parseRuleData.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ async function getPrebuiltDetectionRules(
6969
const parser = res.data.pipe(new tar.Parse());
7070
parser.on('entry', entry => {
7171
if (
72-
entry.path.match(/^elastic-detection-rules-.*\/rules\/.*\.toml$/) &&
72+
(entry.path.match(/^elastic-detection-rules-.*\/rules\/.*\.toml$/) ||
73+
entry.path.match(
74+
/^elastic-detection-rules-.*\/rules_building_block\/.*\.toml$/
75+
)) &&
7376
!entry.path.match(/\/_deprecated\//)
7477
) {
7578
const contentStream = new PassThrough();

0 commit comments

Comments
 (0)