mirror of
https://github.com/v2fly/domain-list-community.git
synced 2025-12-22 18:37:19 +07:00
Compare commits
1 Commits
2025121616
...
2025121616
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8bd29ce92 |
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