From 27373eaea7428aac1ffed7fd88ae9e1de87fa8c7 Mon Sep 17 00:00:00 2001 From: Marc Fisher Date: Mon, 19 Sep 2016 20:26:12 -0500 Subject: [PATCH] Remove newlines for createFn Nice option to remove newlines from functions during createFn to make it easier maintaining the functions. --- lib/db/db.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/db/db.js b/lib/db/db.js index afc4c46f..a186c870 100644 --- a/lib/db/db.js +++ b/lib/db/db.js @@ -660,6 +660,7 @@ Db.prototype.createFn = function (name, fn, options) { var body = fnDef.body .replace(/\'/g, "\\'") .replace(/\"/g, '\\"') + .replace(/\n/g, '') .trim(); // NOTE: We can't do `PARAMETERS []` because else orientdb throws an error