diff --git a/check/test.go b/check/test.go index 06c1b93..eaf0a12 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)