(value: string)
| 53 | }; |
| 54 | |
| 55 | const hasHttpScheme = (value: string): boolean => /^https?:\/\//.test(value.trim()); |
| 56 | |
| 57 | const canParseOrigin = (origin: string | undefined): boolean => { |
| 58 | if (origin === undefined) return true; |
no outgoing calls
no test coverage detected