5f83bfb9 by 周伟奇

fix bug

1 parent bd062e9a
...@@ -38,7 +38,7 @@ class Comparison: ...@@ -38,7 +38,7 @@ class Comparison:
38 if kwargs.get('ocr_replace', False): 38 if kwargs.get('ocr_replace', False):
39 ocr_str = ocr_str.replace('年', '-').replace('月', '-').replace('日', '') 39 ocr_str = ocr_str.replace('年', '-').replace('月', '-').replace('日', '')
40 if kwargs.get('input_replace') is not None: 40 if kwargs.get('input_replace') is not None:
41 input_str = input_str.replace('-', kwargs.get('replace')) 41 input_str = input_str.replace('-', kwargs.get('input_replace'))
42 return self.build_res(input_str == ocr_str) 42 return self.build_res(input_str == ocr_str)
43 43
44 def rmb_compare(self, input_str, ocr_str, **kwargs): 44 def rmb_compare(self, input_str, ocr_str, **kwargs):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!