浏览代码

676table post_handler

chencheng 1 年之前
父节点
当前提交
24e3f2a6cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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