fix: pointer
This commit is contained in:
+2
-1
@@ -29,7 +29,7 @@ class Pattern:
|
||||
num = int(content)
|
||||
return self.sec_range(num)
|
||||
except:
|
||||
logger.debug ("模板内容错误:{}".format(content))
|
||||
logger.warning ("模板内容错误:{}".format(content))
|
||||
return None
|
||||
|
||||
def extract(self,o_str:str):
|
||||
@@ -47,6 +47,7 @@ class Pattern:
|
||||
#消除不完整/非法模板
|
||||
o_str= o_str.replace("<wt>","")
|
||||
o_str=o_str.replace("</wt>","")
|
||||
logger.info(f"过滤后消息:{o_str}")
|
||||
|
||||
return {
|
||||
"content":o_str,
|
||||
|
||||
Reference in New Issue
Block a user