Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/simstudioai/sim
/ trimTrailingZeros
Function
trimTrailingZeros
apps/sim/app/(landing)/models/utils.ts:222–224 ·
view source on GitHub ↗
(value: string)
Source
from the content-addressed store, hash-verified
220
}
221
222
function
trimTrailingZeros(value: string): string {
223
return
value.replace(/\.0+$/,
''
).replace(/(\.\d*?)0+$/,
'$1'
)
224
}
225
226
function
slugify(value: string): string {
227
return
value
Callers
3
formatTokenCount
Function · 0.85
formatFileSize
Function · 0.85
formatPrice
Function · 0.85
Calls
1
replace
Method · 0.65
Tested by
no test coverage detected