MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / isHttpUrl

Function isHttpUrl

ai/ai.ts:358–365  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

356 return null;
357 }
358};
359
360const isHttpUrl = (url: string): boolean => {
361 try {
362 const u = new URL(url);
363 return u.protocol === "http:" || u.protocol === "https:";
364 } catch {
365 return false;
366 }
367};
368

Callers 1

parseAddConfigArgsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected