MCPcopy Create free account
hub / github.com/TruthHun/BookStack / joinPath

Function joinPath

static/word2md/mammoth.browser.js:3892–3908  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3890}
3891
3892function joinPath() {
3893 var nonEmptyPaths = Array.prototype.filter.call(arguments, function(path) {
3894 return path;
3895 });
3896
3897 var relevantPaths = [];
3898
3899 nonEmptyPaths.forEach(function(path) {
3900 if (/^\//.test(path)) {
3901 relevantPaths = [path];
3902 } else {
3903 relevantPaths.push(path);
3904 }
3905 });
3906
3907 return relevantPaths.join("/");
3908}
3909
3910}).call(this,require("buffer").Buffer)
3911},{"./promises":23,"buffer":77,"jszip":92}],39:[function(require,module,exports){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected