Skip to content

Commit e71c38d

Browse files
fix: fix SyntaxWarning for invalid escape character
1 parent 20b6c9d commit e71c38d

File tree

2 files changed

+2
-2
lines changed
  • post-scan-actions

2 files changed

+2
-2
lines changed

post-scan-actions/aws-python-conformity-custom-check/handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def lambda_handler(event, context):
5353
ccaccountid = get_cc_accountid(account_id)
5454

5555
# Get the bucket & object details
56-
s3_domain_pattern = "s3(\..+)?\.amazonaws.com"
56+
s3_domain_pattern = r"s3(\..+)?\.amazonaws.com"
5757
url = urllib.parse.urlparse(message["file_url"])
5858
# check pre-signed URL type, path or virtual
5959
if re.fullmatch(s3_domain_pattern, url.netloc):

post-scan-actions/aws-python-promote-or-quarantine/handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737

3838
DEFAULT_MODE = 'move'
39-
S3_DOMAIN_PATTERN = 's3(\..+)?\.amazonaws.com'
39+
S3_DOMAIN_PATTERN = r's3(\..+)?\.amazonaws.com'
4040
FSS_TAG_PREFIX = 'fss-'
4141

4242
CODE_EMPTY = 0

0 commit comments

Comments
 (0)