fixed find root path

This commit is contained in:
iLLiCiTiT 2021-01-20 19:35:19 +01:00
parent df215fe092
commit 017a30a1b7

View file

@ -1245,6 +1245,10 @@ class RootItem:
root_paths = list(self.cleaned_data.values())
mod_path = self.clean_path(path)
for root_path in root_paths:
# Skip empty paths
if not root_path:
continue
if mod_path.startswith(root_path):
result = True
replacement = "{" + self.full_key() + "}"