github-pages-deploy-action/node_modules/ts-jest/dist/util/messages.js
2020-03-31 08:42:07 -04:00

8 lines
294 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function interpolate(msg, vars) {
if (vars === void 0) { vars = {}; }
return msg.replace(/\{\{([^\}]+)\}\}/g, function (_, key) { return (key in vars ? vars[key] : _); });
}
exports.interpolate = interpolate;