Skip to content

Commit

Permalink
fix: Allow longer TLDs
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdenio committed Sep 23, 2022
1 parent 865e3ca commit 584eee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use trust_dns_client::{
};

lazy_static! {
static ref DOMAIN_REGEX: Regex = Regex::new("^([A-Za-z0-9-]{1,63}\\.)+[A-Za-z]{2,6}$").unwrap();
static ref DOMAIN_REGEX: Regex = Regex::new("^([A-Za-z0-9-]{1,63}\\.)+[A-Za-z]{2,}$").unwrap();
}

pub fn validate_domain(domain: &str) -> bool {
Expand Down

0 comments on commit 584eee2

Please sign in to comment.