Skip to content

Commit

Permalink
[FIX] Accepts acccents in branch name (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinchila authored and fguisso committed Feb 9, 2023
1 parent 5b2987e commit 24ddb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func CheckMaliciousRepoURL(repositoryURL string) (string, error) {

// CheckMaliciousRepoBranch verifies if a given branch is "malicious" or not
func CheckMaliciousRepoBranch(repositoryBranch string, c echo.Context) error {
regexpBranch := `^[a-zA-Z0-9_\/.-]*$`
regexpBranch := `^[a-zA-Z0-9_\/.\-\+À-ÿ]*$`
valid, err := regexp.MatchString(regexpBranch, repositoryBranch)
if err != nil {
log.Error(logActionReceiveRequest, logInfoAnalysis, 1008, "Repository Branch regexp ", err)
Expand Down

0 comments on commit 24ddb72

Please sign in to comment.