* * @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)
| 13094 | * the expected string. |
| 13095 | */ |
| 13096 | function stripBaseUrl(base, url) { |
| 13097 | if (startsWith(url, base)) { |
| 13098 | return url.substr(base.length); |
| 13099 | } |
| 13100 | } |
| 13101 | |
| 13102 | |
| 13103 | function stripHash(url) { |
no test coverage detected