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

Function replaceFragment

static/word2md/mammoth.browser.js:2120–2126  ·  view source on GitHub ↗
(uri, fragment)

Source from the content-addressed store, hash-verified

2118
2119
2120function replaceFragment(uri, fragment) {
2121 var hashIndex = uri.indexOf("#");
2122 if (hashIndex !== -1) {
2123 uri = uri.substring(0, hashIndex);
2124 }
2125 return uri + "#" + fragment;
2126}
2127
2128},{}],17:[function(require,module,exports){
2129var htmlPaths = require("../styles/html-paths");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected