Quellcode durchsuchen

676table post_handler

chencheng vor 1 Jahr
Ursprung
Commit
24e3f2a6cf
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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