diff --git a/frontend/service.go b/frontend/service.go index 66d70500..b29a7746 100644 --- a/frontend/service.go +++ b/frontend/service.go @@ -56,7 +56,7 @@ func (s *SqlStreamer) GetAddressTxids(addressBlockFilter *walletrpc.TransparentA var errCode int64 // Test to make sure Address is a single t address - match, err := regexp.Match("^t[a-zA-Z0-9]{34}$", []byte(addressBlockFilter.Address)) + match, err := regexp.Match("\\At[a-zA-Z0-9]{34}\\z", []byte(addressBlockFilter.Address)) if err != nil || !match { s.log.Errorf("Unrecognized address: %s", addressBlockFilter.Address) return nil