Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix for problem with "require"-ing a js module which ends in a line comment #19
"require"-ing a js module which ends in a line comment will fail with a mysterious error message, because the line comment will comment out surrounding code added in /share/server/util.js
This patch adds a newline to terminate comments that might appear at the end of module files.
Note that it doesn't help to add a newline to the end of the module file -- couchdb apparently strips that away.