Pārlūkot izejas kodu

676table post_handler

chencheng 1 gadu atpakaļ
vecāks
revīzija
24e3f2a6cf
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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