fix: make clean_name idempotent on already-placed (Hack) names
This commit is contained in:
@@ -77,7 +77,7 @@ ARCH_SUBDIR = "" # set while recursing an archive, groups its docs under _docs/
|
|||||||
def strip_trailing_groups(name):
|
def strip_trailing_groups(name):
|
||||||
"""Remove trailing (...) / [...] groups that look like version/variant junk."""
|
"""Remove trailing (...) / [...] groups that look like version/variant junk."""
|
||||||
verkw = re.compile(r"(\d|version|hotfix|bug.?fix|final|anniversary|classic\+|"
|
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 ")]":
|
while name and name[-1] in ")]":
|
||||||
close = name[-1]; open_ch = "(" if close == ")" else "["
|
close = name[-1]; open_ch = "(" if close == ")" else "["
|
||||||
depth = 0; start = -1
|
depth = 0; start = -1
|
||||||
|
|||||||
Reference in New Issue
Block a user