fix: improve non-matching pairs filter

This commit is contained in:
Matthias
2026-02-28 13:32:01 +01:00
parent 56d73e0d74
commit 84a680d6c3

View File

@@ -28,7 +28,11 @@ def expand_pairlist(
raise ValueError(f"Wildcard error in {pair_wc}, {err}")
# Remove wildcard pairs that didn't have a match.
result = [element for element in result if re.fullmatch(r"^[\w:/-]+$", element)]
result = [
element
for element in result
if re.fullmatch(r"^[\w:/-]+$", element) and "_" not in element
]
else:
for pair_wc in wildcardpl: