Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placing GranularMarking on id property causes ValueError #406

Closed
emmanvg opened this issue Jun 8, 2020 · 0 comments · Fixed by #407
Closed

Placing GranularMarking on id property causes ValueError #406

emmanvg opened this issue Jun 8, 2020 · 0 comments · Fixed by #407
Assignees
Labels

Comments

@emmanvg
Copy link
Contributor

emmanvg commented Jun 8, 2020

SELECTOR_REGEX = re.compile(r"^[a-z0-9_-]{3,250}(\.(\[\d+\]|[a-z0-9_-]{1,250}))*$")

Traceback (most recent call last):
  File "C:\Users\user-1\cti-python-stix2\stix2\base.py", line 104, in _check_property
    kwargs[prop_name] = prop.clean(kwargs[prop_name])
  File "C:\Users\user-1\cti-python-stix2\stix2\properties.py", line 216, in clean
    valid = self.contained.clean(item)
  File "C:\Users\user-1\cti-python-stix2\stix2\properties.py", line 547, in clean
    raise ValueError("must adhere to selector syntax.")
ValueError: must adhere to selector syntax.
@emmanvg emmanvg added the bug label Jun 8, 2020
@emmanvg emmanvg self-assigned this Jun 8, 2020
emmanvg added a commit to emmanvg/cti-python-stix2 that referenced this issue Jun 8, 2020
@clenk clenk closed this as completed in #407 Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant