ad575f50 by 周伟奇

fix long date

1 parent 779dbb1a
......@@ -76,7 +76,10 @@ class Comparison:
if not isinstance(input_str, str) or not isinstance(ocr_str, str):
return self.RESULT_NA, ocr_str
if kwargs.get('long', False) and '长期' in ocr_str:
if input_str == '2099-12-31' or input_str == '2099-01-01':
return self.RESULT_Y, '2099-12-31'
else:
return self.RESULT_N, '2099-12-31'
if kwargs.get('ocr_split', False):
if '至' in ocr_str:
ocr_str = ocr_str.split('至')[-1]
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!