src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js
function (sNamespace) {
				if (!sNamespace) {
					return "";
				}
				if (sNamespace[0] === "/") {
					var sNamespaceWithoutLeadingSlash = sNamespace.substring(1, sNamespace.length);
					return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutLeadingSlash);
				}
				if (sNamespace[sNamespace.length - 1] === "/") {
					var sNamespaceWithoutTrailingSlash = sNamespace.substring(0, sNamespace.length - 1);
					return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutTrailingSlash);
				}
				return sNamespace;
			}
function (sNamespace) {
				if (!sNamespace) {
					return "";
				}
				if (sNamespace[0] === "/") {
					var sNamespaceWithoutLeadingSlash = sNamespace.substring(1, sNamespace.length);
					return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutLeadingSlash);
				}
				if (sNamespace[sNamespace.length - 1] === "/") {
					var sNamespaceWithoutTrailingSlash = sNamespace.substring(0, sNamespace.length - 1);
					return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutTrailingSlash);
				}
				return sNamespace;
			}
function ( sNamespace ) { if ( ! sNamespace ) { return "" ; } if ( sNamespace [ 0 ] === "/" ) { var sNamespaceWithoutLeadingSlash = sNamespace . substring ( 1 , sNamespace . length ) ; return this . cleanLeadingAndTrailingSlashes ( sNamespaceWithoutLeadingSlash ) ; } if ( sNamespace [ sNamespace . length - 1 ] === "/" ) { var sNamespaceWithoutTrailingSlash = sNamespace . substring ( 0 , sNamespace . length - 1 ) ; return this . cleanLeadingAndTrailingSlashes ( sNamespaceWithoutTrailingSlash ) ; } return sNamespace ; }
Removes leading and trailing slashes from a string.
@param {String} sNamespace - input string
@returns {String} - string after removing leading and trailing slashes
@public
Removes leading and trailing slashes from a string .