Skip to content

Commit

Permalink
update regex (#306)
Browse files Browse the repository at this point in the history
* update regex

* use `govalidator.IsDNSName`

* Revert "use `govalidator.IsDNSName`"

This reverts commit 6962951.
  • Loading branch information
dogancanbakir authored Jun 27, 2024
1 parent 5bc764a commit aae8aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const (
Unknown
)

var domainRegex = regexp.MustCompile(`^(?i)[a-z0-9-]+(\.[a-z0-9-]+)+\.?$`)
var domainRegex = regexp.MustCompile(`^(?i)[a-z0-9-_]+(\.[a-z0-9-]+)+\.?$`)

func MapToResults(output []*Response) ([]*Result, error) {
results := make([]*Result, 0, len(output))
Expand Down

0 comments on commit aae8aae

Please sign in to comment.