diff --git a/bnp_pdf_statement_parser.py b/bnp_pdf_statement_parser.py index 337b2b0..6604d84 100755 --- a/bnp_pdf_statement_parser.py +++ b/bnp_pdf_statement_parser.py @@ -64,7 +64,7 @@ def isTransactionFromOwnAccounts(comment): # print(comment) return comment.startswith('DEPOT INITIAL DU COMPTE\n') or \ comment.startswith('VIR CPTE A CPTE EMIS /MOTIF ') or \ - VIRT_A_CPTE_EMIS_SUR_LE_REGEX.match(comment)#comment.startswith('VIRT CPTE A CPTE EMIS SUR LE') + VIRT_A_CPTE_EMIS_SUR_LE_REGEX.fullmatch(comment)#comment.startswith('VIRT CPTE A CPTE EMIS SUR LE') #comment.startswith('VIR CPTE A CPTE RECU /DE ') or \ # and comment.endswith('/REFDO /REFBEN') @@ -103,4 +103,4 @@ plt.xticks(xTicks, ticksLabels, rotation = 90) # How to show the horizontal lines for subticks? plt.grid(axis = 'y') -plt.show() \ No newline at end of file +plt.show()