From f6beee585e63a63a3b4453d413177136ac090c0b Mon Sep 17 00:00:00 2001 From: Anthony Weems Date: Wed, 13 Mar 2019 17:12:30 -0500 Subject: [PATCH] Fix CAPEC-USAGE.md code filter example --- USAGE-CAPEC.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/USAGE-CAPEC.md b/USAGE-CAPEC.md index 0abb981ea6..de76a0b333 100644 --- a/USAGE-CAPEC.md +++ b/USAGE-CAPEC.md @@ -78,9 +78,9 @@ In this example, the STIX 2.0 type must be passed into the function. Here we que ```python def get_attack_pattern_by_capec_id(src, capec_id): filt = [ - Filter('type', '=', 'attack_pattern'), - Filter('external_references.external_id', '=', 'CAPEC-" + capec_id) - Filter('external_references.source_name', '=' 'capec") + Filter('type', '=', 'attack-pattern'), + Filter('external_references.external_id', '=', 'CAPEC-' + capec_id), + Filter('external_references.source_name', '=', 'capec'), ] return src.query(filt)