import { isValidUrl } from "@scalar/oas-utils/helpers";
//#region src/libs/isUrl.ts
/** Checks whether the given string is an URL */
function isUrl(input) {
	if (!input) return false;
	if (!(input.startsWith("http://") || input.startsWith("https://"))) return false;
	return isValidUrl(input);
}
//#endregion
export { isUrl };

//# sourceMappingURL=isUrl.js.map