mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
缓存任务:校验缓存Key时支持域名中含有星号通配符
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
var cacheKeyDomainReg1 = regexp.MustCompile(`^(?i)(?:http|https)://([\w-.]+)`)
|
||||
var cacheKeyDomainReg1 = regexp.MustCompile(`^(?i)(?:http|https)://([\w-.*]+)`) // 这里支持 *.example.com
|
||||
var cacheKeyDomainReg2 = regexp.MustCompile(`^([\w-.]+)`)
|
||||
|
||||
// ParseDomainFromKey 从Key中获取域名
|
||||
|
||||
Reference in New Issue
Block a user