MCPcopy Index your code
hub / github.com/simstudioai/sim / parsePhoneNumbers

Function parsePhoneNumbers

apps/sim/lib/webhooks/providers/linq.ts:63–69  ·  view source on GitHub ↗

Parse a comma/whitespace-separated list of phone numbers into a clean array.

(value: unknown)

Source from the content-addressed store, hash-verified

61
62/** Parse a comma/whitespace-separated list of phone numbers into a clean array. */
63function 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
71export const linqHandler: WebhookProviderHandler = {
72 async verifyAuth({

Callers 1

createSubscriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected