We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 508b5ef commit 295ef9aCopy full SHA for 295ef9a
lib/bson/parser/utils.js
@@ -5,7 +5,7 @@
5
* @param {Function} fn The function to stringify
6
*/
7
function normalizedFunctionString(fn) {
8
- return fn.toString().replace('function(', 'function (');
+ return fn.toString().replace(/function *\(/, 'function (');
9
}
10
11
module.exports = {
0 commit comments