MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / removeTrailingSlash

Function removeTrailingSlash

packages/nitro/src/sourceMaps.ts:74–76  ·  view source on GitHub ↗

* Removes a trailing slash from a path so glob patterns can be appended cleanly.

(path: string)

Source from the content-addressed store, hash-verified

72 * Removes a trailing slash from a path so glob patterns can be appended cleanly.
73 */
74function removeTrailingSlash(path: string): string {
75 return path.replace(/\/$/, '');
76}
77
78/**
79 * Builds the plugin options for `createSentryBuildPluginManager` from the Sentry Nitro options.

Callers 1

getPluginOptionsFunction · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected