mirror of
https://github.com/v2fly/domain-list-community.git
synced 2025-12-17 16:10:04 +07:00
Fix: incorrect lowercase for regexp rules (#3066)
This commit is contained in:
8
main.go
8
main.go
@@ -143,7 +143,13 @@ func parseDomain(domain string, entry *Entry) error {
|
|||||||
|
|
||||||
if len(kv) == 2 {
|
if len(kv) == 2 {
|
||||||
entry.Type = strings.ToLower(kv[0])
|
entry.Type = strings.ToLower(kv[0])
|
||||||
entry.Value = strings.ToLower(kv[1])
|
|
||||||
|
if strings.EqualFold(entry.Type, RuleTypeRegexp) {
|
||||||
|
entry.Value = kv[1]
|
||||||
|
} else {
|
||||||
|
entry.Value = strings.ToLower(kv[1])
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user