Skip to content

Commit

Permalink
fix check domain name method
Browse files Browse the repository at this point in the history
  • Loading branch information
linfeng.yuan committed Sep 10, 2024
1 parent 8ea7c01 commit 2675e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/okx/datastore/ord/btc_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl BtcDomain {
/// check the name is valid or not
/// https://docs.btcname.id/docs/overview/chapter-4-thinking-about-.btc-domain-name/calibration-rules
fn is_name_valid(name: &str) -> bool {
let pattern = r"[\.[:space:]\\]";
let pattern = r"[\.\n ]";
let re = Regex::new(pattern).unwrap();
if re.captures(name).is_some() {
return false;
Expand Down

0 comments on commit 2675e37

Please sign in to comment.