Explorar el Código

676table post_handler

chencheng hace 1 año
padre
commit
24e3f2a6cf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      cores/post_decorators.py

+ 1 - 1
cores/post_decorators.py

@@ -60,7 +60,7 @@ def rule3_decorator(f, *args, **kwargs):
     predict_line = [re.sub('勿(.*克)', '\\1', s) for s in predict_line]
     predict_line = [re.sub('毫 克', '毫克', s) for s in predict_line]
     predict_line = [re.sub('能量.', '能量', s) for s in predict_line]
-    predict_line = [re.sub('——精.', '——糖', s) for s in predict_line]
+    predict_line = [re.sub('——精', '——糖', s) for s in predict_line]
     return predict_line