diff options
| author | Magnus Hagander | 2020-03-24 10:15:41 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2020-03-24 10:17:09 +0000 |
| commit | 40fd9f2ed6076d896bb6b42e2dcf347716fe4e41 (patch) | |
| tree | 8e9abd8148fc850089953cddb6710bbbd41336d2 /postgresqleu/transferwise | |
| parent | a7f3c2324b96a4d4ec1fda422d296b267cbdafce (diff) | |
Disallow commas in transferwise counterpart names
It seems there are more combinations in names that are OK to receive
from but not OK to send to... Since the name isn't compared to anything,
just replace the comma with a space. (This is similar to 954fb04c4 which
disallowed digits)
Diffstat (limited to 'postgresqleu/transferwise')
| -rw-r--r-- | postgresqleu/transferwise/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/transferwise/api.py b/postgresqleu/transferwise/api.py index 4eb642d4..571c31b2 100644 --- a/postgresqleu/transferwise/api.py +++ b/postgresqleu/transferwise/api.py @@ -130,7 +130,7 @@ class TransferwiseApi(object): { 'profile': self.get_profile(), 'currency': settings.CURRENCY_ABBREV, - 'accountHolderName': re.sub(r'\d+', '', counterpart_name), + 'accountHolderName': re.sub(r'\d+', '', counterpart_name.replace(',', ' ')), 'type': 'iban', 'details': { 'IBAN': counterpart_account, |
