* * @param {string} begin * @param {string} whole * @returns {string} returns text from whole after begin or undefined if it does not begin with * expected string.
(begin, whole)
| 11391 | * expected string. |
| 11392 | */ |
| 11393 | function beginsWith(begin, whole) { |
| 11394 | if (whole.indexOf(begin) === 0) { |
| 11395 | return whole.substr(begin.length); |
| 11396 | } |
| 11397 | } |
| 11398 | |
| 11399 | |
| 11400 | function stripHash(url) { |
no outgoing calls
no test coverage detected