Skip to content

Commit fa16e44

Browse files
author
anton.voskresensky
committed
prefix > regex
1 parent 18c4976 commit fa16e44

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/config/osctlindicesconfig.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ func (c *Config) GetOsctlIndices() ([]IndexConfig, error) {
140140
indices := c.OsctlIndicesConfig.Indices
141141

142142
sort.Slice(indices, func(i, j int) bool {
143+
if indices[i].Kind != indices[j].Kind {
144+
return indices[i].Kind == "prefix" && indices[j].Kind == "regex"
145+
}
143146
return indices[i].Value < indices[j].Value
144147
})
145148

0 commit comments

Comments
 (0)