Skip to content

Commit

Permalink
Added a space to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaas committed Jul 29, 2021
1 parent 904d94b commit 4980d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regex.go
Expand Up @@ -172,7 +172,7 @@ func (r regexRule) Check(param interface{}) (bool, string) {

if !r.regexObject.MatchString(exprValueStr) {
return false,
fmt.Sprintf("[%s]:%s should match %s format,actual is %s",
fmt.Sprintf("[%s]:%s should match %s format, actual is %s",
r.name, r.getCompleteFieldExpr(), r.name, exprValueStr)
}
return true, ""
Expand Down

0 comments on commit 4980d75

Please sign in to comment.