fix: make clean_name idempotent on already-placed (Hack) names

This commit is contained in:
ginnoir
2026-06-08 20:11:00 -05:00
parent dd26aafc42
commit abd8dab7fa
+1 -1
View File
@@ -77,7 +77,7 @@ ARCH_SUBDIR = "" # set while recursing an archive, groups its docs under _docs/
def strip_trailing_groups(name):
"""Remove trailing (...) / [...] groups that look like version/variant junk."""
verkw = re.compile(r"(\d|version|hotfix|bug.?fix|final|anniversary|classic\+|"
r"beta|\brev\b|english|main|patch|suloku|pss|complete)", re.I)
r"beta|\brev\b|english|main|patch|suloku|pss|complete|\bhack\b)", re.I)
while name and name[-1] in ")]":
close = name[-1]; open_ch = "(" if close == ")" else "["
depth = 0; start = -1