Skip to content

Commit

Permalink
update validator to allow _ in github owner name (#1564)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 authored Nov 24, 2023
1 parent ce3d632 commit 390d535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/surveyext/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

var (
githubOwnerRegexp = regexp.MustCompile(`^(([a-zA-Z0-9-]+)|([a-zA-Z0-9-]+\/[a-zA-Z0-9-]+))$`)
githubOwnerRegexp = regexp.MustCompile(`^(([a-zA-Z0-9-_]+)|([a-zA-Z0-9-_]+\/[a-zA-Z0-9-_]+))$`)

packageNameRegexp = regexp.MustCompile(`^[a-z0-9_]+$`)
dataStreamNameRegexp = regexp.MustCompile(`^([a-z0-9]{2}|[a-z0-9][a-z0-9_]+[a-z0-9])$`)
Expand Down

0 comments on commit 390d535

Please sign in to comment.