From f1c0f011f8409c1857069e151be4591e7fcbacf1 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Tue, 26 May 2015 11:34:37 -0700 Subject: [PATCH] Remove trailing spaces from range check on UUID parser Signed-off-by: Stephen J Day --- uuid/uuid_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uuid/uuid_test.go b/uuid/uuid_test.go index f6df65bc..09c3a7bb 100644 --- a/uuid/uuid_test.go +++ b/uuid/uuid_test.go @@ -39,7 +39,7 @@ func TestParseAndEquality(t *testing.T) { "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", // correct length, incorrect format " 20cc7775-2671-43c7-8742-51d1cfa23258", // leading space "20cc7775-2671-43c7-8742-51d1cfa23258 ", // trailing space - "00000000-0000-0000-0000-x00000000000 ", // out of range character + "00000000-0000-0000-0000-x00000000000", // out of range character } { if _, err := Parse(c); err == nil { t.Fatalf("parsing %q should have failed", c)