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