优化IP库模板分析程序

This commit is contained in:
刘祥超
2023-03-29 21:19:01 +08:00
parent ad84614b2e
commit e35caae373
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
}