This commit is contained in:
恍兮惚兮 2024-08-28 02:47:20 +08:00
parent fa74659b3f
commit 3f726be728

View File

@ -167,8 +167,7 @@ class Process:
mp1[xx] = v mp1[xx] = v
return content, mp1 return content, mp1
def process_after(self, res, mp1): def process_after(self, res: str, mp1):
for key in mp1: for key in mp1:
reg = re.compile(re.escape(key), re.IGNORECASE) res = res.replace(key, mp1[key])
res = reg.sub(mp1[key], res)
return res return res