This commit is contained in:
Timothy Jaeryang Baek
2026-03-07 17:52:58 -06:00
parent e303c3da3b
commit 7b2f597b30
2 changed files with 18 additions and 1 deletions
@@ -21,6 +21,12 @@
let variableValues = {};
const submitHandler = async () => {
// Normalize Windows CRLF (\r\n) to LF (\n) for all string values
for (const key of Object.keys(variableValues)) {
if (typeof variableValues[key] === 'string') {
variableValues[key] = variableValues[key].replace(/\r\n/g, '\n');
}
}
onSave(variableValues);
show = false;
};