Browse Source

Merge branch 'dev'

mxd 3 years ago
parent
commit
4952e2afb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      magic-editor/src/console/src/scripts/beautifier/core/output.js

+ 1 - 1
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);
   }