(raw: readonly string[])
| 148 | } |
| 149 | |
| 150 | function sanitizeAppNames(raw: readonly string[]): string[] { |
| 151 | const filtered = sanitizeCore(raw, true) |
| 152 | if (filtered.length <= APP_NAME_MAX_COUNT) return filtered |
| 153 | return [ |
| 154 | ...filtered.slice(0, APP_NAME_MAX_COUNT), |
| 155 | `… and ${filtered.length - APP_NAME_MAX_COUNT} more`, |
| 156 | ] |
| 157 | } |
| 158 | |
| 159 | function sanitizeTrustedNames(raw: readonly string[]): string[] { |
| 160 | return sanitizeCore(raw, false) |
no test coverage detected