diff --git a/magic-editor/src/console/src/scripts/beautifier/core/output.js b/magic-editor/src/console/src/scripts/beautifier/core/output.js index 4a569423..5d9db8a6 100644 --- a/magic-editor/src/console/src/scripts/beautifier/core/output.js +++ b/magic-editor/src/console/src/scripts/beautifier/core/output.js @@ -311,7 +311,7 @@ Output.prototype.get_code = function(eol) { var sweet_code = this.__lines.join('\n'); if (eol === '\r\n') { - sweet_code = sweet_code.replaceAll(/([^\r])\n/g, `$1${eol}`); + sweet_code = sweet_code.replace(/([^\r])\n/g, `$1${eol}`); }else if (eol !== '\n') { sweet_code = sweet_code.replace(/[\n]/g, eol); }