Commit fbc905c5 authored by Célande Adrien's avatar Célande Adrien Committed by ntome

[lcl] remove '&' from transfer label

the bank removes the character from the label
so i have to remove it as well so the matching is done
parent c1b1bec4
......@@ -144,7 +144,7 @@ class LCLModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapContact,
return self.browser.execute_transfer(transfer)
def transfer_check_label(self, old, new):
old = re.sub(r"[/<\?='!\+:#]", '', old).strip()
old = re.sub(r"[/<\?='!\+:#&]", '', old).strip()
old = old.encode('latin-1', errors='replace').decode('latin-1')
# if no reason given, the site changes the label
if not old and ("INTERNET-FAVEUR" in new):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment