mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic_peer_id: require at least one char for PREFIX_RE
This commit is contained in:
parent
a74d6aa458
commit
c5547c28c0
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ impl PeerClient {
|
||||||
|
|
||||||
if let Some(caps) = PREFIX_RE
|
if let Some(caps) = PREFIX_RE
|
||||||
.get_or_init(|| {
|
.get_or_init(|| {
|
||||||
Regex::new(r"^(?P<prefix>[a-zA-Z0-9\-]*)\-").expect("compile PREFIX_RE regex")
|
Regex::new(r"^(?P<prefix>[a-zA-Z0-9\-]+)\-").expect("compile PREFIX_RE regex")
|
||||||
})
|
})
|
||||||
.captures(&peer_id.0)
|
.captures(&peer_id.0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue