From 05310a65ae8779a3b3fd700927465a3ce2861dc0 Mon Sep 17 00:00:00 2001 From: Ankit Saurabh Date: Mon, 3 Jul 2023 17:44:25 +0100 Subject: [PATCH] Revert "Removed AWS partition Regex as we are supporting all the regions with this change" This reverts commit d03e6b39f4736356e4bfe8755dc01acd8946ba6e. --- mountpoint-s3-client/src/endpoint.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mountpoint-s3-client/src/endpoint.rs b/mountpoint-s3-client/src/endpoint.rs index 8b32ca36d..d070fe13d 100644 --- a/mountpoint-s3-client/src/endpoint.rs +++ b/mountpoint-s3-client/src/endpoint.rs @@ -8,6 +8,8 @@ use std::os::unix::prelude::OsStrExt; use thiserror::Error; lazy_static! { + /// Regions in the "aws" partition (from the SDK's `partitions.json`) + static ref AWS_PARTITION_REGEX: Regex = Regex::new(r"^(us|eu|ap|sa|ca|me|af)\-\w+\-\d+$").unwrap(); /// Bucket names that are acceptable as virtual host names for DNS static ref VALID_DNS_REGEX: Regex = Regex::new(r"[a-z0-9][a-z0-9\-]*[a-z0-9]").unwrap(); }