* * @param {string} base * @param {string} url * @returns {string} returns text from `url` after `base` or `undefined` if it does not begin with * the expected string.
(base, url)
| 14461 | * the expected string. |
| 14462 | */ |
| 14463 | function stripBaseUrl(base, url) { |
| 14464 | if (startsWith(url, base)) { |
| 14465 | return url.substr(base.length); |
| 14466 | } |
| 14467 | } |
| 14468 | |
| 14469 | function stripHash(url) { |
| 14470 | var index = url.indexOf('#'); |
no test coverage detected