Skip to content

Commit

Permalink
Update regex to get the full subdomain. Bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Josue87 committed May 22, 2021
1 parent b39c22d commit a1ded5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GO/analyticsrelationships.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func getUA(url string) [][]string {
}

func getDomains(id string) [][]string {
pattern := regexp.MustCompile("/relationships/[a-z0-9\\-\\_]+\\.[a-z]+")
pattern := regexp.MustCompile("/relationships/[a-z0-9\\-\\_\\.]+\\.[a-z]+")
url := "https://builtwith.com/relationships/tag/" + id
response := getURLResponse(url)
var result = [][]string{}
Expand Down
2 changes: 1 addition & 1 deletion Python/analyticsrelationships.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_googletagmanager(url):
return False, None

def get_domains(id):
pattern = "/relationships/[a-z0-9\-\_]+\.[a-z]+"
pattern = "/relationships/[a-z0-9\-\_\.]+\.[a-z]+"
url = f"https://builtwith.com/relationships/tag/{id}"
try:
u = urllib.request.urlopen(url)
Expand Down

0 comments on commit a1ded5f

Please sign in to comment.