refactor: standardization of code structure (#7)

This commit is contained in:
Li4n0
2021-04-25 14:15:42 +08:00
committed by GitHub
parent 26755351f7
commit 50a6749070
17 changed files with 88 additions and 100 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func (br BaseRule) Match(s string) (flag, flagGroup string, vars map[string]stri
return
} else {
if catcher, err := regexp.Compile(br.FlagFormat); err != nil {
log.Error("%s(rule:%s)", err.Error(), br.Name)
log.Error("%s[rule:%s]", err, br.Name)
return
} else {
br.flagCatcher = catcher