MCPcopy Create free account
hub / github.com/openai/openai-node / isAbsoluteURL

Function isAbsoluteURL

src/internal/utils/values.ts:8–10  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

6const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
7
8export const isAbsoluteURL = (url: string): boolean => {
9 return startsWithSchemeRegexp.test(url);
10};
11
12export let isArray = (val: unknown): val is unknown[] => ((isArray = Array.isArray), isArray(val));
13export let isReadonlyArray = isArray as (val: unknown) => val is readonly unknown[];

Callers 1

buildURLMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected