github-pages-deploy-action/node_modules/ts-jest/dist/util/messages.js

8 lines
294 B
JavaScript
Raw Normal View History

2020-03-31 20:42:07 +08:00
"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;