(protocol?: string)
| 10 | const DSN_REGEX = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/; |
| 11 | |
| 12 | function isValidProtocol(protocol?: string): protocol is DsnProtocol { |
| 13 | return protocol === 'http' || protocol === 'https'; |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Renders the string representation of this Dsn. |