export function replaceVariables(server) {
    let { url, variables } = server;
    if (variables) {
        for (const key in variables) {
            const variable = variables[key];
            if (variable.default) {
                const regex = new RegExp(`{${key}}`, 'g');
                url = url.replace(regex, variable.default);
            }
        }
    }
    return url;
}
//# sourceMappingURL=replaceVariables.js.map