(value: unknown)
| 50 | } |
| 51 | |
| 52 | function parseStringArray(value: unknown): string[] { |
| 53 | if (Array.isArray(value)) { |
| 54 | return value.filter((entry): entry is string => typeof entry === 'string' && entry.length > 0) |
| 55 | } |
| 56 | if (typeof value === 'string' && value.length > 0) { |
| 57 | return value |
| 58 | .split(',') |
| 59 | .map((entry) => entry.trim()) |
| 60 | .filter(Boolean) |
| 61 | } |
| 62 | return [] |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Per-field bounds ported from the legacy notifications contract. Rule SQL |
no outgoing calls
no test coverage detected