提交 e9187b01 编写于 作者: 泰斯特Test's avatar 泰斯特Test

[fix](common.py)修正「正则转义字符」的模糊查询

上级 2954c634
......@@ -111,14 +111,13 @@ re_escapes = ['*', '.', '?', '+', '$', '^', '[', ']', '(', ')', '{', '}', '|']
def format_escapes(input, escapes=re_escapes):
if can_convert_to_str(input):
input = str(input)
if not isinstance(input, str):
return input
else:
for index, char in enumerate(input):
if char in escapes:
input = input.replace(char, '\\' + char)
return input
else:
return None
def format_order(raw_order):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册