UNPKG

@scalar/api-client

Version:

the open source API testing client

10 lines (9 loc) 202 B
function e(r) { if (!r) return !1; const t = r.trim(); return !t.startsWith("http://") && !t.startsWith("https://") ? !1 : t.replace(/^https?:\/\//, "").length > 0; } export { e as isUrl };