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

Function stripTechnicalSuffixes

apps/sim/app/(landing)/models/utils.ts:248–253  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

246}
247
248function stripTechnicalSuffixes(value: string): string {
249 return value
250 .replace(/-\d{8}-v\d+:\d+$/i, '')
251 .replace(/-v\d+:\d+$/i, '')
252 .replace(/-\d{8}$/i, '')
253}
254
255function tokenizeModelName(value: string): string[] {
256 return value

Callers 2

formatModelDisplayNameFunction · 0.85
getRelatedModelsFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected