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

Function stripPrefix

static/word2md/mammoth.browser.js:1675–1681  ·  view source on GitHub ↗
(value, prefix)

Source from the content-addressed store, hash-verified

1673}
1674
1675function stripPrefix(value, prefix) {
1676 if (value.substring(0, prefix.length) === prefix) {
1677 return value.substring(prefix.length);
1678 } else {
1679 return value;
1680 }
1681}
1682
1683function xmlFileReader(options) {
1684 return function(zipFile) {

Callers 1

findPartPathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected