import { REGEX } from'./regex-helpers.js';
/** Ensure URL has a protocol prefix */functionensureProtocol(url) {
if (REGEX.PROTOCOL.test(url)) {
return url;
}
// Default to http if no protocol is specifiedreturn`http://${url.replace(/^\//, '')}`;
}
export { ensureProtocol };