From 65febc37fd9d0db2003811b39720347bb936ee84 Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Fri, 10 Jul 2020 18:07:17 -0500 Subject: [PATCH] Allow '' in ID regex --- transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transaction.go b/transaction.go index 1923bf91b..2af2c76df 100644 --- a/transaction.go +++ b/transaction.go @@ -25,7 +25,7 @@ import ( "github.com/pkg/errors" ) -var txIDRegexp = regexp.MustCompile("^[A-Za-z0-9_-]$") +var txIDRegexp = regexp.MustCompile("^[A-Za-z0-9_-]*$") // Transaction contains information related to a block of work that // needs to be tracked and spans multiple API calls.