diff --git a/ranges/fetchers/azure.go b/ranges/fetchers/azure.go index 914e4f7..8df9959 100644 --- a/ranges/fetchers/azure.go +++ b/ranges/fetchers/azure.go @@ -35,7 +35,7 @@ func (f AzurePublicCloudFetcher) FetchIPRanges() ([]string, error) { } // Step 2: Extract the JSON download URL using a regex - urlRegex := regexp.MustCompile(`https://download\.microsoft\.com/.*?\.json`) + urlRegex := regexp.MustCompile(`^https://download\.microsoft\.com/.*?\.json$`) matches := urlRegex.FindStringSubmatch(string(body)) if len(matches) == 0 { return nil, fmt.Errorf("failed to find JSON download URL in Azure download page")