(value: unknown)
| 124 | } |
| 125 | |
| 126 | export function isCaptureTarget(value: unknown): value is CaptureTarget { |
| 127 | return value === 'code' || value === 'notes' || value === 'http' |
| 128 | } |
| 129 | |
| 130 | function findFirstUrl(text: string): string | undefined { |
| 131 | return text.match(/https?:\/\/\S+/)?.[0] |
no outgoing calls
no test coverage detected