Skip to content

Commit

Permalink
fix: Using raw string in the regular expression compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisr3d committed Dec 26, 2018
1 parent 383bd56 commit f527e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stix2/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"[0-9a-fA-F]{12}$",
)

ID_REGEX_interoperability = re.compile("^[a-z0-9][a-z0-9-]+[a-z0-9]--" # object type
ID_REGEX_interoperability = re.compile(r"^[a-z0-9][a-z0-9-]+[a-z0-9]--" # object type
"[0-9a-fA-F]{8}-"
"[0-9a-fA-F]{4}-"
"[0-9a-fA-F]{4}-"
Expand Down

0 comments on commit f527e27

Please sign in to comment.