Skip to content

Commit

Permalink
Bugfix: Identity list regex, safety number interpolation (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
AetherUnbound authored May 12, 2021
1 parent 1aed1a0 commit db9df78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions signal_scanner_bot/bin/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@

# Constants
UNTRUSTED_REGEX = re.compile(
r"""
^(?P<phone_number>\+[1-9]\d{10}): UNTRUSTED .* Safety Number: (?P<safety_number>[0-9 ]*)
""",
flags=re.MULTILINE,
r"^(?P<phone_number>\+[1-9]\d{10}): UNTRUSTED .* Safety Number: (?P<safety_number>[0-9 ]*)"
)


Expand Down
2 changes: 1 addition & 1 deletion signal_scanner_bot/signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def trust_identity(phone_number: str, safety_number: str):
"trust",
phone_number,
"-v",
f'"{safety_number}"',
f'{safety_number.replace(" ", "")}',
],
capture_output=False,
text=True,
Expand Down

0 comments on commit db9df78

Please sign in to comment.