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

Function isUrlLike

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

Source from the content-addressed store, hash-verified

649}
650
651function isUrlLike(value: string): boolean {
652 return value.startsWith('http://') || value.startsWith('https://') || value.startsWith('/')
653}
654
655/**
656 * Extracts HTTPS URL from a file input object (UserFile or RawFileInput)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected