MCPcopy Create free account
hub / github.com/simstudioai/sim / hasFileExtension

Function hasFileExtension

apps/sim/lib/copilot/tools/client/store-utils.ts:160–162  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

158}
159
160function hasFileExtension(value: string): boolean {
161 return /\.[^/.]+$/.test(value)
162}
163
164function stripExtension(value: string): string {
165 return value.replace(/\.[^/.]+$/, '')

Callers 1

getLeafResourceSegmentFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected