(url: string)
| 363 | export type BrowserOpenCommand = readonly [command: string, args: ReadonlyArray<string>]; |
| 364 | |
| 365 | const normalizeBrowserOpenUrl = (url: string): string | undefined => { |
| 366 | try { |
| 367 | const parsed = new URL(url); |
| 368 | return parsed.protocol === "http:" || parsed.protocol === "https:" ? parsed.href : undefined; |
| 369 | } catch { |
| 370 | return undefined; |
| 371 | } |
| 372 | }; |
| 373 | |
| 374 | export const browserOpenCommand = ( |
| 375 | url: string, |
no outgoing calls
no test coverage detected