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

Function join

static/word2md/turndown.js:878–886  ·  view source on GitHub ↗
(string1, string2)

Source from the content-addressed store, hash-verified

876}
877
878function join (string1, string2) {
879 var separator = separatingNewlines(string1, string2);
880
881 // Remove trailing/leading newlines and replace with separator
882 string1 = string1.replace(trailingNewLinesRegExp, '');
883 string2 = string2.replace(leadingNewLinesRegExp, '');
884
885 return string1 + separator + string2
886}
887
888/**
889 * Determines whether an input can be converted

Callers 2

processFunction · 0.85
postProcessFunction · 0.85

Calls 1

separatingNewlinesFunction · 0.85

Tested by

no test coverage detected