fix: [stix2 import] Fixed external patterns parsing

- Avoiding brackets to be imported with the type
  and value within attributes
- Going with 55095910c
pull/6231/head
chrisr3d 2020-09-01 22:29:03 +02:00
parent d9eca85e08
commit 99d910fe75
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 0 deletions

View File

@ -1973,6 +1973,7 @@ class ExternalStixParser(StixParser):
@staticmethod
def get_type_and_value_from_pattern(pattern):
pattern = pattern.strip('[]')
try:
pattern_type, pattern_value = pattern.split(' = \'')
except ValueError: