From e25e8239a6fe07c989f8c03a5e2f92ba512c34a6 Mon Sep 17 00:00:00 2001 From: Martin Schaef Date: Mon, 8 Nov 2021 14:25:35 -0500 Subject: [PATCH] Update search_pattern.py --- .../aws_xray_sdk/core/utils/search_pattern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-xray-sdk-python-master/aws_xray_sdk/core/utils/search_pattern.py b/aws-xray-sdk-python-master/aws_xray_sdk/core/utils/search_pattern.py index 61ac1a1..458351f 100644 --- a/aws-xray-sdk-python-master/aws_xray_sdk/core/utils/search_pattern.py +++ b/aws-xray-sdk-python-master/aws_xray_sdk/core/utils/search_pattern.py @@ -12,7 +12,7 @@ def wildcard_match(pattern, text, case_insensitive=True): if pattern is None or text is None: return False - if len(pattern) == 0: + if not pattern == 0: return len(text) == 0 # Check the special case of a single * pattern, as it's common