mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-26 16:41:53 +08:00
refactor: standardization of code structure (#7)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user