Exclude numbers and special strings from build names
Allows Nextstrain team's `all_regions` rule to run. This rule produces filenames
with dates or suffixes containing "zh" or "gisaid" that need to be excluded from
the `build_name` wildcard.
@@ -10,7 +10,9 @@ BUILD_NAMES = list(config["builds"].keys())
# Define patterns we expect for wildcards.
wildcard_constraints:
- build_name = r'(?:[\w-](?!tip-frequencies))+',
+ # Allow build names to contain alpha characters, underscores, and hyphens
+ # but not special strings used for Nextstrain builds.
+ build_name = r'(?:[_a-zA-Z-](?!(tip-frequencies|gisaid|zh)))+',
date = r"[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]"
localrules: download
