From abd8dab7fa4f2532f3f27aad3a5e7879e877421e Mon Sep 17 00:00:00 2001 From: ginnoir Date: Mon, 8 Jun 2026 20:11:00 -0500 Subject: [PATCH] fix: make clean_name idempotent on already-placed (Hack) names --- scripts/romhack-import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/romhack-import.py b/scripts/romhack-import.py index f2044ae..3ade9cb 100644 --- a/scripts/romhack-import.py +++ b/scripts/romhack-import.py @@ -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