const postfixRE = /[?#].*$/s; /** * @param {string} url */ export function cleanUrl(url) { return url.replace(postfixRE, ''); }