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 1fee0a0 commit fbaa246Copy full SHA for fbaa246
index.js
@@ -8,5 +8,5 @@
8
'use strict';
9
10
module.exports = function functionRegex() {
11
- return /^function\s*(\w*)\s*\(([\w\s,]*)\)\s*\{([\w\W\s\S]*)\}$/;
+ return /^function\s*([\w$]*)\s*\(([\w\s,$]*)\)\s*\{([\w\W\s\S]*)\}$/;
12
};
0 commit comments