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