Skip to content

Commit

Permalink
fix: fix regexp for cdn subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Oct 9, 2022
1 parent 9d99a0c commit fb176ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var BUILDIN_OFFICAL_UBUNTU_MIRRORS = []string{
}

var UBUNTU_HOST_PATTERN = regexp.MustCompile(
`https?://(\w+)?(security|archive).ubuntu.com/ubuntu/(.+)$`,
`https?://(\w{2}\.)?(security|archive).ubuntu.com/ubuntu/(.+)$`,
)

var UBUNTU_DEFAULT_CACHE_RULES = []Rule{
Expand Down

0 comments on commit fb176ad

Please sign in to comment.