Commit 7e178723 by sikang

bug fix

parent 19dbf846
......@@ -24,7 +24,7 @@ class PackageGarble:
# 必须先替换长路径
keys = sorted(self.pkg_mapping.keys(),
key=lambda i: len(i.split(".")), reverse=True)
for pkg in self.pkg_mapping.keys():
for pkg in keys:
file_content = file_content.replace(pkg, self.pkg_mapping[pkg])
ext = os.path.splitext(file_name)[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment