Skip to content

Commit

Permalink
fix transfer regex reported by circle (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardliang authored Jun 13, 2024
1 parent f0a1679 commit 0a8f9b1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/revolut/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

# Recv data regexes
(r'"id":"([a-fA-F0-9-]+)","legId":"([a-fA-F0-9-]+)","type":"TRANSFER","state":"COMPLETED","startedDate":(\d+),"updatedDate":(\d+)', 'string'), # Transaction ID
(r'"code":"(\w+)","account":{"id":"([a-fA-F0-9-]+)","type":"CURRENT"}},"localisedDescription":{"key":"transaction.description.generic.name",[X]+\]', 'string'), # Target RevID
(r'"code":"(\w+)","account":{"id":"([a-fA-F0-9-]+)","type":"CURRENT"}', 'string'), # Target RevID
(r'"amount":([\d.-]+),"fee":(\d+),[X]+,[X]+,', 'string'), # Target Amount
(r'"currency":"([A-Z]{3})","amount":([\d.-]+),"fee":(\d+),[X]+,[X]+,', 'string'), # Target Currency
(r'"type":"TRANSFER","state":"(\w+)","startedDate":(\d+),"updatedDate":(\d+)', 'string'), # State
Expand Down
Loading

0 comments on commit 0a8f9b1

Please sign in to comment.