Skip to content

Commit

Permalink
fix: fix SyntaxWarning for invalid escape character (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
trend-yinghsiuliu authored Oct 17, 2024
1 parent 20b6c9d commit ab48b93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def lambda_handler(event, context):
ccaccountid = get_cc_accountid(account_id)

# Get the bucket & object details
s3_domain_pattern = "s3(\..+)?\.amazonaws.com"
s3_domain_pattern = r"s3(\..+)?\.amazonaws.com"
url = urllib.parse.urlparse(message["file_url"])
# check pre-signed URL type, path or virtual
if re.fullmatch(s3_domain_pattern, url.netloc):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

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

CODE_EMPTY = 0
Expand Down

0 comments on commit ab48b93

Please sign in to comment.