MCPcopy Index your code
hub / github.com/simstudioai/sim / isUrlLike

Function isUrlLike

apps/sim/lib/uploads/utils/file-schemas.ts:4–5  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

2import { isInternalFileUrl } from '@/lib/uploads/utils/file-utils'
3
4const isUrlLike = (value: string) =>
5 value.startsWith('http://') || value.startsWith('https://') || value.startsWith('/')
6
7export const RawFileInputSchema = z
8 .object({

Callers 1

file-schemas.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected