MCPcopy
hub / github.com/parse-community/parse-server / removeTrailingSlash

Function removeTrailingSlash

src/Config.js:31–39  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

29import Utils from './Utils';
30
31function removeTrailingSlash(str) {
32 if (!str) {
33 return str;
34 }
35 if (str.endsWith('/')) {
36 str = str.substring(0, str.length - 1);
37 }
38 return str;
39}
40
41/**
42 * Config keys that need to be loaded asynchronously.

Callers 1

getMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected