Comply with go regexp & user defined regular expression prefix (#164)

To avoid further confusion like this: https://github.com/v2fly/domain-list-community/issues/163
This commit is contained in:
Loyalsoldier
2020-08-19 20:44:54 +08:00
committed by GitHub
parent f587eaeb04
commit a98b29b562
11 changed files with 30 additions and 28 deletions

View File

@ -70,7 +70,7 @@ func (l *ParsedList) toProto() (*router.GeoSite, error) {
Value: entry.Value,
Attribute: entry.Attrs,
})
case "regex":
case "regexp":
site.Domain = append(site.Domain, &router.Domain{
Type: router.Domain_Regex,
Value: entry.Value,