(text: string)
| 132 | const URL_RE = /https?:\/\/[^\s<>"{}|\\^`[\]]+/g |
| 133 | |
| 134 | export function extractUrls(text: string): string[] { |
| 135 | const matches = text.match(URL_RE) |
| 136 | if (!matches) return [] |
| 137 | |
| 138 | const cleaned = matches.map(url => url.replace(/[.,;:!?)]+$/, '')) |
| 139 | return [...new Set(cleaned)] |
| 140 | } |
| 141 | |
| 142 | // Patterns to detect npm's OTP prompt in pty output |
| 143 | const OTP_PROMPT_RE = /Enter OTP:/i |
no outgoing calls
no test coverage detected