MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / hasFileExtension

Function hasFileExtension

apps/local/src/serve-shared.ts:71–74  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

69 hasBearerToken(request, token);
70
71export const hasFileExtension = (pathname: string): boolean => {
72 const lastSegment = pathname.split("/").at(-1) ?? "";
73 return lastSegment.includes(".");
74};
75
76/**
77 * OAuth provider callbacks land here from the user's external browser, which

Callers 1

fetchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected