@kyleroberts69/core
Version:
Core library for the Chatbot project
16 lines (15 loc) • 489 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.dockerEnvVarFix = void 0;
// In docker, env files are not parsed correctly, so we remove unintended quotes and newlines
const dockerEnvVarFix = (envVar) => {
if (envVar) {
let newEnvVar = envVar.replaceAll('"', '');
newEnvVar = newEnvVar.replaceAll('\\n', '\n');
return newEnvVar;
}
else {
return undefined;
}
};
exports.dockerEnvVarFix = dockerEnvVarFix;