Skip to content

Commit

Permalink
Update the regex to match domain names case in-sensitive (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamRasal authored May 27, 2023
1 parent 0a25894 commit 8abb0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/pkg/subscraping/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func init() {
func NewSubdomainExtractor(domain string) (*regexp.Regexp, error) {
subdomainExtractorMutex.Lock()
defer subdomainExtractorMutex.Unlock()
extractor, err := regexp.Compile(`[a-zA-Z0-9\*_.-]+\.` + domain)
extractor, err := regexp.Compile(`(?i)[a-zA-Z0-9\*_.-]+\.` + domain)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 8abb0c3

Please sign in to comment.