Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 64e1a3b

Browse files
authoredJul 6, 2020
carriage return fix
1 parent 006c1df commit 64e1a3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/services/updateInformix.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ const informix = require('../common/informixWrapper')
33
const logger = require('../common/logger')
44

55
String.prototype.escapeSpecialChars = function () {
6-
return this.replace(/\n/g, "\\n");
6+
return this.replace(/\n/g, "\\n")
7+
.replace(/\r/g, "\\r");
78
};
89

910
async function updateInformix(payload) {

0 commit comments

Comments
 (0)
Please sign in to comment.