diff --git a/check/test.go b/check/test.go
index 06c1b93267275bc7d54bb5723c09e435f12419de..eaf0a120786a74569e89a72701f9dbbbaa779c66 100644
--- a/check/test.go
+++ b/check/test.go
@@ -62,7 +62,8 @@ func (t *testItem) execute(s string) (result bool) {
 			// --flag=somevalue
 			// --flag
 			// somevalue
-			pttn := `(` + t.Flag + `)(=)*([^\s,]*) *`
+			//pttn := `(` + t.Flag + `)(=)*([^\s,]*) *`
+			pttn := `(` + t.Flag + `)(=)*([^\s]*) *`
 			flagRe := regexp.MustCompile(pttn)
 			vals := flagRe.FindStringSubmatch(s)