(url)
| 235 | |
| 236 | const ABSOLUTE_SCHEME = /^[A-Za-z0-9\+\-\.]+:/; |
| 237 | function getURLType(url) { |
| 238 | if (url[0] === "/") { |
| 239 | if (url[1] === "/") return "scheme-relative"; |
| 240 | return "path-absolute"; |
| 241 | } |
| 242 | |
| 243 | return ABSOLUTE_SCHEME.test(url) ? "absolute" : "path-relative"; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Given two URLs that are assumed to be on the same |
no outgoing calls
no test coverage detected
searching dependent graphs…