* * @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)
| 13666 | * the expected string. |
| 13667 | */ |
| 13668 | function stripBaseUrl(base, url) { |
| 13669 | if (startsWith(url, base)) { |
| 13670 | return url.substr(base.length); |
| 13671 | } |
| 13672 | } |
| 13673 | |
| 13674 | |
| 13675 | function stripHash(url) { |
no test coverage detected