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

Function format

static/editor.md/lib/codemirror/mode/rst/rst.js:76–81  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

74 ///////////////////////////////////////////////////////////////////////////
75
76 function format(string) {
77 var args = Array.prototype.slice.call(arguments, 1);
78 return string.replace(/{(\d+)}/g, function (match, n) {
79 return typeof args[n] != 'undefined' ? args[n] : match;
80 });
81 }
82
83 ///////////////////////////////////////////////////////////////////////////
84 ///////////////////////////////////////////////////////////////////////////

Callers 1

rst.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected