Skip to content

Commit fbaa246

Browse files
author
tunnckoCore
committed
add $ to the ranges
1 parent 1fee0a0 commit fbaa246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
'use strict';
99

1010
module.exports = function functionRegex() {
11-
return /^function\s*(\w*)\s*\(([\w\s,]*)\)\s*\{([\w\W\s\S]*)\}$/;
11+
return /^function\s*([\w$]*)\s*\(([\w\s,$]*)\)\s*\{([\w\W\s\S]*)\}$/;
1212
};

0 commit comments

Comments
 (0)