mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
swarm/api: match URI address with the exact length
This commit is contained in:
parent
fc5deff624
commit
9c5e526383
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: this is bad, it should not be hardcoded how long is a hash
|
// TODO: this is bad, it should not be hardcoded how long is a hash
|
||||||
var hashMatcher = regexp.MustCompile("^([0-9A-Fa-f]{64})([0-9A-Fa-f]{64})?")
|
var hashMatcher = regexp.MustCompile("^([0-9A-Fa-f]{64})([0-9A-Fa-f]{64})?$")
|
||||||
|
|
||||||
type ErrResourceReturn struct {
|
type ErrResourceReturn struct {
|
||||||
key string
|
key string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue