优化IP库模板分析程序

This commit is contained in:
GoEdgeLab
2023-03-29 21:19:01 +08:00
parent 84a4b72266
commit de4c86c836
2 changed files with 4 additions and 3 deletions

View File

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