diff --git a/crates/core/component/stake/src/delegation_token.rs b/crates/core/component/stake/src/delegation_token.rs index 6d03469c51..d48bb2051b 100644 --- a/crates/core/component/stake/src/delegation_token.rs +++ b/crates/core/component/stake/src/delegation_token.rs @@ -63,7 +63,7 @@ impl TryFrom for DelegationToken { // Note: this regex must be in sync with both asset::REGISTRY // and VALIDATOR_IDENTITY_BECH32_PREFIX let validator_identity = - Regex::new("udelegation_(?Ppenumbravalid1[a-zA-HJ-NP-Z0-9]+)") + Regex::new("^udelegation_(?Ppenumbravalid1[a-zA-HJ-NP-Z0-9]+)$") .expect("regex is valid") .captures(&base_denom.to_string()) .ok_or_else(|| {