MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / localize

Function localize

static/scripts/markitup/jquery.markitup.js:76–81  ·  view source on GitHub ↗
(data, inText)

Source from the content-addressed store, hash-verified

74
75 // apply the computed path to ~/
76 function localize(data, inText) {
77 if (inText) {
78 return data.replace(/("|')~\//g, "$1"+options.root);
79 }
80 return data.replace(/^~\//, options.root);
81 }
82
83 // init and build editor
84 function init() {

Callers 2

jquery.markitup.jsFile · 0.85
renderPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected