WebUI: iterate over own properties only

This commit is contained in:
Chocobo1
2024-05-08 15:43:02 +08:00
parent b07afa3ea9
commit 64dfb7e122
9 changed files with 38 additions and 5 deletions

View File

@@ -199,6 +199,8 @@ window.qBittorrent.MultiRename = (function() {
}
// Replace named groups
for (const namedGroup in match.groups) {
if (!Object.hasOwn(match.groups, namedGroup))
continue;
replacement = replaceGroup(replacement, `$${namedGroup}`, match.groups[namedGroup], "\\", false);
}
// Replace auxiliary variables