MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / trimTrailingSlash

Function trimTrailingSlash

helpers/astro/request.js:9–11  ·  view source on GitHub ↗
( url )

Source from the content-addressed store, hash-verified

7const TWELVE_HOURS = 12 * ONE_HOUR
8
9function trimTrailingSlash ( url ) {
10 return url.replace( /\/$/, '' )
11}
12
13// We use a set of top level list pages
14// so that our list searching time is as fast as possible

Callers 1

getMaxAgeForUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected