File size: 132 Bytes
bc20498
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
const postfixRE = /[?#].*$/s;

/**
 * @param {string} url
 */
export function cleanUrl(url) {
	return url.replace(postfixRE, '');
}