Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
160
function
hasFileExtension(value: string): boolean {
161
return
/\.[^/.]+$/.test(value)
162
}
163
164
function
stripExtension(value: string): string {
165
return
value.replace(/\.[^/.]+$/,
''
)
Callers
1
getLeafResourceSegment
Function · 0.85
Calls
1
test
Method · 0.80
Tested by
no test coverage detected