feat(aa): add function to resolve include preamble.

This commit is contained in:
Alexandre Pujol 2024-05-28 11:53:32 +01:00
parent 04a91bbd9b
commit dc0e0084a0
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 191 additions and 36 deletions

View file

@ -80,7 +80,7 @@ func (r Rules) Remove(rule Rule) Rules {
}
func (r Rules) Insert(idx int, rules ...Rule) Rules {
return append(r[:idx], append(rules, r[idx:]...)...)
return append(r[:idx], append(rules, r[idx+1:]...)...)
}
func (r Rules) Sort() Rules {