diff --git a/core/utils/util.py b/core/utils/util.py index 0c1b5b6ee..473172350 100644 --- a/core/utils/util.py +++ b/core/utils/util.py @@ -90,7 +90,7 @@ def remove_punctuation_and_length(text): char not in full_width_punctuations and char not in half_width_punctuations and char not in space and char not in full_width_space]) if result == "Yeah": - return 0 + return 0, result return len(result), result @@ -120,4 +120,4 @@ def check_password(password): return False # 如果满足所有条件,则返回True - return True \ No newline at end of file + return True