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.
clean
1 parent 111467f commit b9456e9Copy full SHA for b9456e9
lib/utils.js
@@ -76,7 +76,7 @@ exports.clean = function(str) {
76
.replace(/^\uFEFF/, '')
77
// (traditional)-> space/name parameters body (lambda)-> parameters body multi-statement/single keep body content
78
.replace(
79
- /^function(?:\s*|\s+[^(]*)\([^)]*\)\s*\{((?:.|\n)*?)\s*\}$|^\([^)]*\)\s*=>\s*(?:\{((?:.|\n)*?)\s*\}|((?:.|\n)*))$/,
+ /^function(?:\s*|\s[^(]*)\([^)]*\)\s*\{((?:.|\n)*?)\}$|^\([^)]*\)\s*=>\s*(?:\{((?:.|\n)*?)\}|((?:.|\n)*))$/
80
'$1$2$3'
81
);
82
0 commit comments