a825541a by 周伟奇

Merge branch 'feature/e-bank'

2 parents 594149a3 597d5d5d
......@@ -68,7 +68,7 @@ class BSWorkbook(Workbook):
header_col = header_dict.get(header_value)
if header_col is None:
for pattern in consts.PATTERN_LIST:
if re.search(pattern, header_value):
if re.search(pattern, header_value) and len(header_value) - len(pattern) <= 5:
header_col = header_dict.get(pattern)
break
return header_col
......
......@@ -46,6 +46,8 @@ class PDFHandler:
'中国工商银行借记账户历史明细',
'中国建设银行个人活期账户全部交易明细',
'平安银行个人账户交易明细清单',
'中国农业银⾏账⼾活期交易明细清单',
'支付宝(中国)网络技术有限公司 交易流水证明'
]
self.page_count = None
self.metadata = None
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!