Skip to content

Commit a71ae13

Browse files
committed
added-case-insensitive
1 parent 5e4f6d4 commit a71ae13

File tree

1 file changed

+3
-3
lines changed
  • uncoder-core/app/translator/platforms/sigma

1 file changed

+3
-3
lines changed

uncoder-core/app/translator/platforms/sigma/mapping.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ def __init__(
1919
def is_suitable(
2020
self, service: Optional[list[str]], product: Optional[list[str]], category: Optional[list[str]]
2121
) -> bool:
22-
product_match = set(product or []).issubset(self.products) if product else False
23-
category_match = set(category or []).issubset(self.categories) if category else False
24-
service_match = set(service or []).issubset(self.services) if service else False
22+
product_match = set(product_.lower() for product_ in product or []).issubset(self.products) if product else False
23+
category_match = set(category_.lower() for category_ in category or []).issubset(self.categories) if category else False
24+
service_match = set(service_.lower() for service_ in service or [] or []).issubset(self.services) if service else False
2525
if not product and not service:
2626
return category_match
2727
return product_match and service_match or product_match and category_match

0 commit comments

Comments
 (0)