Skip to content

Commit

Permalink
fix: Typo (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ithildir authored and b5 committed Aug 6, 2019
1 parent b244d4b commit 9f11b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keywords_strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (p Pattern) Validate(propPath string, data interface{}, errs *[]ValError) {
re := regexp.Regexp(p)
if str, ok := data.(string); ok {
if !re.Match([]byte(str)) {
AddError(errs, propPath, data, fmt.Sprintf("regexp pattrn %s mismatch on string: %s", re.String(), str))
AddError(errs, propPath, data, fmt.Sprintf("regexp pattern %s mismatch on string: %s", re.String(), str))
}
}
}
Expand Down

0 comments on commit 9f11b79

Please sign in to comment.