This commit is contained in:
Jan Pieper 2011-05-29 01:02:44 -07:00
parent cac034c031
commit 3dc49ce826

View file

@ -74,4 +74,13 @@ exports.format = function(format) {
}
return result;
};
exports.vsprintf = function(format, replacements) {
var args = [format];
replacements.forEach(function(replacement) {
args.push(replacement);
});
return exports.format.apply(this, args);
};
exports.sprintf = exports.format;