Skip to content

Commit

Permalink
Merge #466 (add missing r prefix to regular expression).
Browse files Browse the repository at this point in the history
  • Loading branch information
martey authored Feb 8, 2020
2 parents da0646a + 00d3966 commit 09b281b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion facebook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __init__(
self.app_secret_hmac = None

if version:
version_regex = re.compile("^\d\.\d{1,2}$")
version_regex = re.compile(r"^\d\.\d{1,2}$")
match = version_regex.search(str(version))
if match is not None:
if str(version) not in VALID_API_VERSIONS:
Expand Down

0 comments on commit 09b281b

Please sign in to comment.