* * @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)
| 14526 | * the expected string. |
| 14527 | */ |
| 14528 | function stripBaseUrl(base, url) { |
| 14529 | if (startsWith(url, base)) { |
| 14530 | return url.substr(base.length); |
| 14531 | } |
| 14532 | } |
| 14533 | |
| 14534 | function stripHash(url) { |
| 14535 | var index = url.indexOf('#'); |
no test coverage detected