(url: string)
| 26 | |
| 27 | /** Extract share ID from a share URL like https://opncd.ai/share/abc123 */ |
| 28 | export function parseShareUrl(url: string): string | null { |
| 29 | const match = url.match(/^https?:\/\/[^/]+\/share\/([a-zA-Z0-9_-]+)$/) |
| 30 | return match ? match[1] : null |
| 31 | } |
| 32 | |
| 33 | export function shouldAttachShareAuthHeaders(shareUrl: string, accountBaseUrl: string): boolean { |
| 34 | try { |
no outgoing calls
no test coverage detected