(url)
| 442 | * @return {string} |
| 443 | */ |
| 444 | export function removeSearch(url) { |
| 445 | const index = url.indexOf('?'); |
| 446 | if (index == -1) { |
| 447 | return url; |
| 448 | } |
| 449 | const fragment = getFragment(url); |
| 450 | return url.substring(0, index) + fragment; |
| 451 | } |
| 452 | |
| 453 | /** |
| 454 | * Removes parameters that start with amp js parameter pattern and returns the |
no test coverage detected