Plato on Github
Report Home
ampersand/lib/app/processString.js
Maintainability
86.51
Lines of code
6
Difficulty
5.60
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
module.exports = function (string, data) { return string.replace(/\{\{\{(\w+)\}\}\}/g, function (match, p1) { var value = data[p1]; return value || match; }); };