(input: string)
| 274 | } |
| 275 | |
| 276 | function tryToCreateValidUrlFromValue(input: string): string { |
| 277 | let possibleUrl = input; |
| 278 | |
| 279 | if (!input.startsWith("http://") && !input.startsWith("https://")) { |
| 280 | possibleUrl = input.includes("localhost") ? `http://${input}` : `https://${input}`; |
| 281 | } |
| 282 | |
| 283 | return possibleUrl; |
| 284 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…