Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
const
TWELVE_HOURS = 12 * ONE_HOUR
8
9
function
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
getMaxAgeForUrl
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected