From 52a428f8846183b5df2da27fee53fb1b10857cba Mon Sep 17 00:00:00 2001 From: Raqueebuddin Aziz Date: Mon, 4 Dec 2023 14:23:29 +0530 Subject: [PATCH] fix regex condition --- wildcard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wildcard.py b/wildcard.py index 60303b7..50ffc62 100644 --- a/wildcard.py +++ b/wildcard.py @@ -96,7 +96,7 @@ class SimpleWildcard: if wildcard_mode_enabled: items = get_items_for_wildcard_path(kwargs["input_files"]) - if kwargs["regex"] != "*" or kwargs["regex"] != "": + if kwargs["regex"] != ".*" or kwargs["regex"] != "": regex = re.compile(kwargs["regex"], re.IGNORECASE) items = list(items | where(regex.match))