Commit f8a50df6 authored by 张英杰's avatar 张英杰

Merge branch 'feature/skin_check' into 'test'

fix

See merge request !303
parents cc384cd5 fdedc443
...@@ -103,7 +103,7 @@ class SkinCheckConfig(APIView): ...@@ -103,7 +103,7 @@ class SkinCheckConfig(APIView):
:param check_str: :param check_str:
:return: 没有标签符号,默认返回True :return: 没有标签符号,默认返回True
""" """
punctuation_marks = list(filter(lambda x: x in string.punctuation), text) punctuation_marks = list(filter(lambda x: x in string.punctuation, text))
if punctuation_marks: if punctuation_marks:
return all(map(lambda p: p == check_str, punctuation_marks)) return all(map(lambda p: p == check_str, punctuation_marks))
return True return True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment