Skip to content

Commit

Permalink
代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
javamxd committed Sep 5, 2021
1 parent 8232a5c commit 9b3e596
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9b3e596

Please sign in to comment.