Skip to content

Commit

Permalink
Revert "Removed AWS partition Regex as we are supporting all the regi…
Browse files Browse the repository at this point in the history
…ons with this change"

This reverts commit d03e6b3.
  • Loading branch information
Ankit Saurabh committed Jul 3, 2023
1 parent f66ce79 commit 05310a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mountpoint-s3-client/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 05310a6

Please sign in to comment.