mirror of
https://github.com/azure/setup-kubectl.git
synced 2026-12-04 20:01:53 +00:00
7ad2aa66bb
Co-authored-by: tbarnes94 <tbarnes94@users.noreply.github.com>
8 lines
294 B
JavaScript
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;
|