( urlString )
| 18 | ] |
| 19 | |
| 20 | function getDomainFromString ( urlString ) { |
| 21 | const url = new URL( urlString ) |
| 22 | |
| 23 | return url.hostname |
| 24 | } |
| 25 | |
| 26 | function getPathFromUrl ( urlString ) { |
| 27 | const url = new URL( urlString ) |
nothing calls this directly
no outgoing calls
no test coverage detected