MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isSupportedContentType

Function isSupportedContentType

sdk/src/tools/read-url.ts:262–266  ·  view source on GitHub ↗
(contentType: string)

Source from the content-addressed store, hash-verified

260}
261
262function isSupportedContentType(contentType: string): boolean {
263 return /^(text\/|application\/(json|[^;\s/]+\+json|xhtml\+xml|xml|rss\+xml|atom\+xml)\b)/i.test(
264 contentType,
265 )
266}
267
268function extractTextByContentType(
269 contentType: string,

Callers 1

readUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected