feat(aa-log): improve the regex helper type.
This commit is contained in:
parent
84247e390c
commit
e3545cc3bb
4 changed files with 12 additions and 9 deletions
|
|
@ -184,9 +184,7 @@ func DirectiveStack(file *paths.Path, profile string) string {
|
|||
panic(fmt.Sprintf("No profile found in %s", name))
|
||||
}
|
||||
stackedRules := m[1]
|
||||
for _, aa := range regCleanStakedRules {
|
||||
stackedRules = aa.Regex.ReplaceAllLiteralString(stackedRules, aa.Repl)
|
||||
}
|
||||
stackedRules = regCleanStakedRules.Replace(stackedRules)
|
||||
res += " # Stacked profile: " + name + "\n" + stackedRules + "\n"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue