Code coverage report for ampersand/lib/app/processString.js

Statements: 100% (4 / 4)      Branches: 100% (2 / 2)      Functions: 100% (2 / 2)      Lines: 100% (4 / 4)      Ignored: none     

All files » ampersand/lib/app/ » processString.js
1 2 3 4 5 6 71 93 18 18      
module.exports = function (string, data) {
    return string.replace(/\{\{\{(\w+)\}\}\}/g, function (match, p1) {
        var value = data[p1];
        return value || match;
    });
};