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

fix

parent a008bde1
......@@ -103,7 +103,7 @@ class SkinCheckConfig(APIView):
:param check_str:
: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:
return all(map(lambda p: p == check_str, punctuation_marks))
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