597d5d5d by 周伟奇

fix zhifubao date

1 parent 756e96a8
...@@ -68,7 +68,7 @@ class BSWorkbook(Workbook): ...@@ -68,7 +68,7 @@ class BSWorkbook(Workbook):
68 header_col = header_dict.get(header_value) 68 header_col = header_dict.get(header_value)
69 if header_col is None: 69 if header_col is None:
70 for pattern in consts.PATTERN_LIST: 70 for pattern in consts.PATTERN_LIST:
71 if re.search(pattern, header_value): 71 if re.search(pattern, header_value) and len(header_value) - len(pattern) <= 5:
72 header_col = header_dict.get(pattern) 72 header_col = header_dict.get(pattern)
73 break 73 break
74 return header_col 74 return header_col
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!