We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd0cda0 commit c58aad7Copy full SHA for c58aad7
gateway.js
@@ -86,7 +86,7 @@ var openPort = (function f(reopen) {
86
})();
87
88
global.caseInsensitiveSorter = function (a, b) {return a.toLowerCase().localeCompare(b.toLowerCase())};
89
-String.prototype.replaceNewlines = function () { return this.replace('\n','\\n').replace('\r','\\r') };
+String.prototype.replaceNewlines = function () { return this.replace(/(?:\r\n|\r|\n)/g, '\\n') };
90
91
var merge = require('merge');
92
global.loadMetricsFile = function(file, globalizeFunctions, fatal) {
0 commit comments