(data, inText)
| 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() { |
no outgoing calls
no test coverage detected