Skip to content

Commit

Permalink
remove doSafeRegexpMustCompile
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhyanz46 committed Sep 8, 2024
1 parent 13341ef commit 409a8c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion map_validator/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func validate(field string, dataTemp map[string]interface{}, validator Rules, da
}
return nil, errors.New("the field '" + field + "' should be string")
}
regex, err := doSafeRegexpMustCompile(validator.RegexString)
regex, err := regexp.Compile(validator.RegexString)
if err != nil {
return nil, err
}
Expand Down
19 changes: 0 additions & 19 deletions map_validator/safe_regex.go

This file was deleted.

0 comments on commit 409a8c7

Please sign in to comment.