Skip to content

Commit

Permalink
Merge pull request ethereum#456 from ethersphere/fix-hashmatcher
Browse files Browse the repository at this point in the history
Fix hashMatcher
  • Loading branch information
zelig authored Apr 27, 2018
2 parents 1e2b2f8 + 9c5e526 commit 9cbaf29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarm/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
)

// 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 {
key string
Expand Down

0 comments on commit 9cbaf29

Please sign in to comment.