function filterProtocol(uri) {
    const isAbsolute = /^(https?|ftp|file|mailto|tel|sip|data):/i.test(uri);
    const isRelative = uri.startsWith('/');
    return isAbsolute || isRelative ? uri : '';
}
export { filterProtocol };
