修复IP库模板可能无法正确解析数据的问题

This commit is contained in:
GoEdgeLab
2023-03-29 20:06:56 +08:00
parent 04b7710abe
commit 4f3dd1a89d
2 changed files with 14 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ func (this *Template) init() error {
return keyword
})
reg, err := regexp.Compile(template)
reg, err := regexp.Compile("^(?U)" + template)
if err != nil {
return err
}