From df9fb50c7d3bf082265686d71bf8c4faa875c64f Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 11 Apr 2022 19:45:04 +0200 Subject: [PATCH] Re-allow Carriage Return in Output --- app/assets/javascripts/editor/evaluation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/editor/evaluation.js b/app/assets/javascripts/editor/evaluation.js index a94eae38..0e511d78 100644 --- a/app/assets/javascripts/editor/evaluation.js +++ b/app/assets/javascripts/editor/evaluation.js @@ -2,7 +2,7 @@ CodeOceanEditorEvaluation = { chunkBuffer: [{streamedResponse: true}], // A list of non-printable characters that are not allowed in the code output. // Taken from https://stackoverflow.com/a/69024306 - nonPrintableRegEx: /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\uFEFF]/g, + nonPrintableRegEx: /[\u0000-\u0008\u000B\u000C\u000F-\u001F\u007F-\u009F\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\uFEFF]/g, /** * Scoring-Functions