Merge pull request #456 from ethersphere/fix-hashmatcher

Fix hashMatcher
This commit is contained in:
Viktor Trón 2018-04-27 14:48:05 +02:00 committed by GitHub
commit 9cbaf29376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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