mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
fa74659b3f
commit
3f726be728
@ -167,8 +167,7 @@ class Process:
|
||||
mp1[xx] = v
|
||||
return content, mp1
|
||||
|
||||
def process_after(self, res, mp1):
|
||||
def process_after(self, res: str, mp1):
|
||||
for key in mp1:
|
||||
reg = re.compile(re.escape(key), re.IGNORECASE)
|
||||
res = reg.sub(mp1[key], res)
|
||||
res = res.replace(key, mp1[key])
|
||||
return res
|
||||
|
Loading…
x
Reference in New Issue
Block a user