MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / allowTrailingSlash

Function allowTrailingSlash

e2e/utils/url.ts:1–1  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

1export const allowTrailingSlash = (url: string) => RegExp(url + '[/]?$');

Callers 8

completeFrontEndCertFunction · 0.90
completeChallengesFunction · 0.90
redirect.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by 2

completeFrontEndCertFunction · 0.72
completeChallengesFunction · 0.72