From 3a8fee211f37f4877c2a42626e9ffc9c0f977d9b Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Tue, 10 Mar 2015 15:22:16 +0100 Subject: [PATCH] The Foxx Comment preprocessor now trimes strings properly --- js/common/modules/org/arangodb/foxx/preprocessor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/common/modules/org/arangodb/foxx/preprocessor.js b/js/common/modules/org/arangodb/foxx/preprocessor.js index 82753c8699..cb2e36efc0 100644 --- a/js/common/modules/org/arangodb/foxx/preprocessor.js +++ b/js/common/modules/org/arangodb/foxx/preprocessor.js @@ -128,7 +128,8 @@ extend(Preprocessor.prototype, { replace(/^(.*?)\*\/.*$/, '$1'). // end of JSDoc comment replace(/^\s*\*/, ''). // continuation of JSDoc comment replace(/\\/g, '\\\\'). // replace backslashes - replace(/"/g, '\\"'); // replace quotes + replace(/"/g, '\\"'). // replace quotes + trim(); // remove leading and trailing spaces }, isJSDoc: function (str) {