chore: add explaining comment

This commit is contained in:
Matthias 2024-09-15 10:37:28 +02:00
parent bfb14614cc
commit 95c250ebcc

View File

@ -28,6 +28,7 @@ def expand_pairlist(
except re.error as err:
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"^[A-Za-z0-9:/-]+$", element)]
else: