Update post.py

This commit is contained in:
恍兮惚兮 2024-04-13 22:45:28 +08:00
parent c2af20424a
commit 2a930393e0

View File

@ -320,7 +320,8 @@ def trymapnameofvndb(s):
namemap = savehook_new_data[exepath]["namemap"] namemap = savehook_new_data[exepath]["namemap"]
bettermap = {} bettermap = {}
for k, v in namemap.items(): for k, v in namemap.items():
spja = k.split("") for sp in ['',' ']:
spja = k.split(sp)
spen = v.split(" ") spen = v.split(" ")
if len(spja) == len(spen) and len(spen) > 1: if len(spja) == len(spen) and len(spen) > 1:
for i in range(len(spja)): for i in range(len(spja)):