Parse a comma/whitespace-separated list of phone numbers into a clean array.
(value: unknown)
| 61 | |
| 62 | /** Parse a comma/whitespace-separated list of phone numbers into a clean array. */ |
| 63 | function parsePhoneNumbers(value: unknown): string[] { |
| 64 | if (typeof value !== 'string') return [] |
| 65 | return value |
| 66 | .split(/[\n,]/) |
| 67 | .map((entry) => entry.trim()) |
| 68 | .filter((entry) => entry.length > 0) |
| 69 | } |
| 70 | |
| 71 | export const linqHandler: WebhookProviderHandler = { |
| 72 | async verifyAuth({ |
no outgoing calls
no test coverage detected