MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / levelIndex

Function levelIndex

internal/thinking/validate.go:321–328  ·  view source on GitHub ↗
(level string)

Source from the content-addressed store, hash-verified

319}
320
321func levelIndex(level string) int {
322 for i, l := range standardLevelOrder {
323 if strings.EqualFold(level, string(l)) {
324 return i
325 }
326 }
327 return -1
328}
329
330func normalizeLevels(levels []string) []string {
331 out := make([]string, len(levels))

Callers 1

clampLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected