mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
fix
This commit is contained in:
parent
fa74659b3f
commit
3f726be728
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user