whatap 0.4.61 → 0.4.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -202,10 +202,11 @@ function getFunctionName(func) {
|
|
|
202
202
|
if(ret[0] === '(') {
|
|
203
203
|
return null;
|
|
204
204
|
}
|
|
205
|
-
ret
|
|
205
|
+
if(ret.indexOf('function ') >= 0 ) {
|
|
206
|
+
ret = ret.substr('function '.length);
|
|
207
|
+
}
|
|
206
208
|
ret = ret.substr(0, ret.indexOf('('));
|
|
207
209
|
} catch (e) {
|
|
208
|
-
|
|
209
210
|
}
|
|
210
211
|
return ret;
|
|
211
212
|
};
|
package/package.json
CHANGED