parseBotsValue parses a bots value from frontmatter (supports string, []any, []string)
(botsValue any, fieldName string)
| 178 | |
| 179 | // parseBotsValue parses a bots value from frontmatter (supports string, []any, []string) |
| 180 | func parseBotsValue(botsValue any, fieldName string) []string { |
| 181 | return parseOptionalStringSliceField(botsValue, fieldName) |
| 182 | } |
| 183 | |
| 184 | // parseOptionalStringSliceField parses string-list fields that accept either |
| 185 | // a single string or an array. Empty strings are filtered out. |
no test coverage detected