1
0
Fork 0

The Foxx Comment preprocessor now trimes strings properly

This commit is contained in:
Michael Hackstein 2015-03-10 15:22:16 +01:00
parent a2e1e70d0f
commit 3a8fee211f
1 changed files with 2 additions and 1 deletions

View File

@ -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) {